文章标题:RFC 2675: IPv6 Jumbograms
正文:

- Compact HTML
RFC 2675: IPv6 Jumbograms
- August 1999.
- 10 subscribed
Network Working Group D. Borman
Request for Comments: 2675 Berkeley Software Design
Obsoletes: 2147 S. Deering
Category: Standards Track Cisco
R. Hinden
Nokia
August 1999
IPv6 Jumbograms
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 (1999). All Rights Reserved.
Abstract
A "jumbogram" is an IPv6 packet containing a payload longer than
65,535 octets. This document describes the IPv6 Jumbo Payload
option, which provides the means of specifying such large payload
lengths. It also describes the changes needed to TCP and UDP to make
use of jumbograms.
Jumbograms are relevant only to IPv6 nodes that may be attached to
links with a link MTU greater than 65,575 octets, and need not be
implemented or understood by IPv6 nodes that do not support
attachment to links with such large MTUs.
1. Introduction
jumbo (jum'bO),
n., pl. -bos, adj.
-n.
1. a person, animal, or thing very large of its kind.
-adj.
2. very large: the jumbo box of cereal.
[1800-10; orig. uncert.; popularized as the name of a large
elephant purchased and exhibited by P.T. Barnum in 1882]
-- www.infoplease.com
Borman, et al. Standards Track [Page 1]
RFC 2675 IPv6 Jumbograms August 1999
The IPv6 header [IPv6] has a 16-bit Payload Length field and,
therefore, supports payloads up to 65,535 octets long. This document
specifies an IPv6 hop-by-hop option, called the Jumbo Payload option,
that carries a 32-bit length field in order to allow transmission of
IPv6 packets with payloads between 65,536 and 4,294,967,295 octets in
length. Packets with such long payloads are referred to as
"jumbograms".
The Jumbo Payload option is relevant only for IPv6 nodes that may be
attached to links with a link MTU greater than 65,575 octets (that
is, 65,535 + 40, where 40 octets is the size of the IPv6 header).
The Jumbo Payload option need not be implemented or understood by
IPv6 nodes that do not support attachment to links with MTU greater
than 65,575.
On links with configurable MTUs, the MTU must not be configured to a
value greater than 65,575 octets if there are nodes attached to that
link that do not support the Jumbo Payload option and it can not be
guaranteed that the Jumbo Payload option will not be sent to those
nodes.
The UDP header [UDP] has a 16-bit Length field which prevents it from
making use of jumbograms, and though the TCP header [TCP] does not
have a Length field, both the TCP MSS option and the TCP Urgent field
are constrained to 16 bits. This document specifies some simple
enhancements to TCP and UDP to enable them to make use of jumbograms.
An implementation of TCP or UDP on an IPv6 node that supports the
Jumbo Payload option must include the enhancements specified here.
注意:UDP 和 TCP 使用的 16 位校验和,随着被校验数据长度的增加,准确性会下降。应用设计者可能需要将这一点考虑在内。
1.1 文档历史
本文档合并并更新了此前发表在两份独立文档中的材料:
- Jumbo Payload 选项的规范此前作为 IPv6 规范的一部分出现在 RFC 1883 中。RFC 1883 已被 RFC 2460 取代,而 RFC 2460 不再包含 Jumbo Payload 选项的规范。
- 为支持 jumbogram 而对 TCP 和 UDP 所做增强的规范此前出现在 RFC 2147 中。RFC 2147 被本文档废弃。
Borman, et al. 标准跟踪 [第 2 页]
RFC 2675 IPv6 Jumbograms 1999 年 8 月
2. Jumbo Payload 选项的格式
Jumbo Payload 选项承载在 IPv6 逐跳选项头中,紧跟在 IPv6 头之后。该选项的对齐要求为 4n + 2。(关于选项对齐的讨论见 [IPv6, 第 4.2 节]。)该选项具有以下格式:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Option Type | Opt Data Len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Jumbo Payload Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Option Type 8 位值 C2(十六进制)。
Opt Data Len 8 位值 4。
Jumbo Payload Length 32 位无符号整数。IPv6 数据包的长度,以八位组计,
不包括 IPv6 头,但包括逐跳选项头
以及存在的任何其他扩展头。
必须大于 65,535。
3. Jumbo Payload 选项的使用
在每个携带 Jumbo Payload 选项的数据包中,IPv6 头中的 Payload Length 字段必须置为零。
如果一个理解 Jumbo Payload 选项的节点收到这样一个数据包:其 IPv6 头中的 Payload Length 为零、Next Header 值为零(表示其后跟随逐跳选项头),且其链路层帧格式表明在 IPv6 头之后还存在八位组,则该节点必须继续处理逐跳选项头,以便从 Jumbo Payload 选项中确定载荷的实际长度。
Jumbo Payload 选项不得用于携带分片头的数据包。
对于使用 IPv6 Payload Length 字段来计算 [IPv6, 第 8.1 节] 所述校验和伪首部中 Upper-Layer Packet Length 字段值的高层协议,在携带 Jumbo Payload 选项的数据包中,必须改用 Jumbo Payload Length 字段进行该计算。
Borman, et al. 标准跟踪 [第 3 页]
RFC 2675 IPv6 Jumbograms 1999 年 8 月
理解 Jumbo Payload 选项的节点必须检测若干可能的格式错误,并且如果该错误数据包的目的地址不是组播地址,则通过向该数据包的源发送 ICMP Parameter Problem 消息 [ICMPv6] 来报告错误。以下错误列表规定了 Parameter Problem 消息的 Code 和 Pointer 字段中应使用的值:
错误:IPv6 Payload Length = 0 且
IPv6 Next Header = Hop-by-Hop Options 且
Jumbo Payload 选项不存在
Code: 0
Pointer: IPv6 Payload Length 的高位八位组
错误:IPv6 Payload Length != 0 且
Jumbo Payload 选项存在
Code: 0
Pointer: Jumbo Payload 选项的 Option Type 字段
错误:Jumbo Payload 选项存在且
Jumbo Payload Length < 65,536
文章标题:RFC 2675: IPv6 Jumbograms
正文:
Code: 0
Pointer: Jumbo Payload Length 的高位字节
error: Jumbo Payload 选项存在且
Fragment 头存在
Code: 0
Pointer: Fragment 头的高位字节。
根据 IPv6 规范,不理解 Jumbo Payload 选项的节点在收到
错误接收的 jumbogram 时,应按如下方式响应:
error: IPv6 Payload Length = 0 且
IPv6 Next Header = Hop-by-Hop Options
Code: 0
Pointer: IPv6 Payload Length 的高位字节
error: IPv6 Payload Length != 0 且
Jumbo Payload 选项存在
Code: 2
Pointer: Jumbo Payload 选项的 Option Type 字段
Borman, et al. Standards Track [Page 4]
RFC 2675 IPv6 Jumbograms August 1999
4. UDP Jumbograms
UDP 头中的 16 位 Length 字段将 UDP 包(即 UDP 头加数据)的总长度
限制为不超过 65,535 个八位字节。本文档规定对 UDP 作如下修改以放宽
该限制:可通过将 UDP Length 字段置零来发送长度超过 65,535 个八位
字节的 UDP 包,并让接收方从 IPv6 载荷长度推导出实际的 UDP 包长度。
(注意,在此修改之前,零不是 UDP Length 字段的合法值,因为 UDP
包长度包含 UDP 头,因此最小值为 8。)
发送 UDP jumbogram 的具体要求如下:
发送 UDP 包时,当且仅当 UDP 头加 UDP 数据的长度大于 65,535 时,
将 UDP 头中的 Length 字段置零。
承载如此大的 UDP 包的 IPv6 包必然会在 Hop-by-Hop Options 头中
包含一个 Jumbo Payload 选项;将该选项的 Jumbo Payload Length
字段设为 UDP 头加数据的实际长度,再加上 IPv6 头与 UDP 头之间
存在的所有 IPv6 扩展头的长度。
计算 UDP 校验和时,在校验和伪首部中使用 UDP 头加数据的实际长度,
而不是零 [IPv6, Section 8.1]。
接收 UDP jumbogram 的具体要求如下:
接收 UDP 包时,当且仅当 UDP 头中的 Length 字段为零时,从 IPv6
Jumbo Payload Length 字段减去 IPv6 头与 UDP 头之间存在的所有
扩展头的长度,计算出 UDP 头加数据的实际长度。
在 UDP Length 字段为零但不存在 Jumbo Payload 选项的意外情况下
(即该 IPv6 包不是 jumbogram),在上述计算中使用 IPv6 头中的
Payload Length 字段代替 Jumbo Payload Length 字段。
验证接收到的 UDP 校验和时,在校验和伪首部中使用计算出的 UDP
头加数据长度,而不是零。
Borman, et al. Standards Track [Page 5]
RFC 2675 IPv6 Jumbograms August 1999
5. TCP Jumbograms
由于 TCP 头中没有长度字段,因此没有任何东西限制单个 TCP 包的长度。
然而,在连接建立之初协商的 MSS 值限制了可发送的最大 TCP 包,并且
Urgent Pointer 无法引用超过 65,535 字节的数据。
5.1 TCP MSS
在确定要发送的 MSS 值时,如果直接连接接口的 MTU 减去 60 [IPv6,
Section 8.3] 大于或等于 65,535,则将 MSS 值设为 65,535。
当收到 65,535 的 MSS 值时,应将其视为无穷大。实际 MSS 的值通过以下方式确定:在通往 TCP 对端的路径上执行 Path MTU Discovery [MTU-DISC],将得到的结果减去 60。
5.2 TCP Urgent Pointer
Urgent Pointer 问题可以通过增加一个 TCP Urgent Pointer Option 来解决。然而,由于使用 jumbogram 的应用不太可能同时使用 Urgent Pointer,因此采用与 MSS 改动类似的侵入性较小的改动即可。
当要发送带有 Urgent Pointer 的 TCP 数据包时(即 URG 位被置位),首先计算从 Sequence Number 到 Urgent Pointer 的偏移量。如果该偏移量小于 65,535,则填充 Urgent 字段,并继续进行正常的 TCP 处理。如果偏移量大于 65,535,且偏移量大于或等于 TCP 数据的长度,则用 65,535 填充 Urgent Pointer,并继续进行正常的 TCP 处理。否则,必须将该 TCP 数据包拆分为两部分。第一部分包含截至 Urgent Pointer 所指向数据之前(不含该数据)的数据,并将 Urgent 字段置为 65,535,以表示 Urgent Pointer 超出本数据包的末尾。第二部分则可以正常设置 Urgent 字段后发送。
注意:第一部分不必包含直到 Urgent Pointer 的全部数据。它可以更短,只要它在距 Urgent Pointer 65,534 字节以内结束即可,这样第二部分中到 Urgent Pointer 的偏移量就会小于 65,535 字节。
对于 TCP 输入处理,当收到一个 URG 位置位且 Urgent 字段为 65,535 的 TCP 数据包时,计算 Urgent Pointer 所使用的偏移量应等于 TCP 数据的长度,而不是 Urgent 字段中的偏移量。
Borman, et al. Standards Track [Page 6]
RFC 2675 IPv6 Jumbograms August 1999
还应指出的是,尽管 TCP 窗口只有 16 位,但通过使用 TCP Window Scale 选项 [TCP-EXT],可以使用更大的窗口。
6. Security Considerations
Jumbo Payload 选项和 TCP/UDP jumbogram 没有引入任何已知的新安全问题。
7. Authors' Addresses
David A. Borman
Berkeley Software Design, Inc.
4719 Weston Hills Drive
Eagan, MN 55123
USA
Phone: +1 612 405 8194
EMail: [email protected]
Stephen E. Deering
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
Phone: +1 408 527 8213
EMail: [email protected]
Robert M. Hinden
Nokia
313 Fairchild Drive
Mountain View, CA 94043
USA
Phone: +1 650 625 2004
EMail: [email protected]
Borman, et al. Standards Track [Page 7]
RFC 2675 IPv6 Jumbograms August 1999
8. References
[ICMPv6] Conta, A. and S. Deering, "ICMP for the Internet Protocol
Version 6 (IPv6)", RFC 2463, December 1998.
[IPv6] Deering, S. and R. Hinden, "Internet Protocol Version 6
(IPv6) Specification", RFC 2460, December 1998.
[MTU-DISC] McCann, J., Deering, S. and J. Mogul, "Path MTU Discovery
for IP Version 6", RFC 1981, August 1986.
[TCP] Postel, J., "Transmission Control Protocol", STD 7, RFC
793, September 1981.
[TCP-EXT] Jacobson, V., Braden, R. and D. Borman, "TCP Extensions
for High Performance", RFC 1323, May 1992.
[UDP] Postel, J., "User Datagram Protocol", STD 6, RFC 768,
August 1980.
Borman, et al. Standards Track [Page 8]
RFC 2675 IPv6 Jumbograms August 1999
- Full Copyright Statement
Copyright (C) The Internet Society (1999). All Rights Reserved.
像 {{NAME_ab12cd34}} 这样写出的值是真实值的占位符。在回复和工具调用中都完全按原样使用它们:它们会在任何内容运行之前被填充为真实值。不要要求验证它们,也不要用示例替换它们。
本文档及其译文可被复制并提供给他人,也可制备、复制、发布和分发对本文档进行评论、以其他方式解释本文档或协助实施本文档的衍生作品,无论全部还是部分,均不受任何限制,前提是所有此类副本和衍生作品中均包含上述版权声明和本段内容。但是,本文档本身不得以任何方式修改,例如删除版权声明或对 Internet Society 或其他 Internet 组织的引用,除非为制定 Internet 标准之目的所需,且此时必须遵循 Internet 标准过程中定义的版权程序;或为将本文档翻译成英语以外的语言所需。
上述授予的有限许可永久有效,且不会被 Internet Society 或其继承者或受让人撤销。
本文档及其中包含的信息按“原样”提供,Internet Society 和 Internet Engineering Task Force 不作任何明示或暗示的保证,包括但不限于:使用本文档中的信息不会侵犯任何权利的保证,或任何关于适销性或特定用途适用性的暗示保证。
致谢
RFC Editor 职能的资金目前由 Internet Society 提供。
Borman 等 标准轨道 [第 9 页]