# 八位组（计算机）

八位组是恰好八个位组成的一组，在计算机领域用作数据单位，尤其是在网络协议规范中——在那里它比“字节”一词更受青睐，因为某些计算机体系结构在历史上曾使用过其他大小的字节。<sup>[1](https://www.rfc-editor.org/info/rfc1392/)</sup>《互联网用户词汇表》直白地说明了原因：“八位组就是8个位。网络领域偏爱这个词而非‘字节’，因为在某些机器上字节的长度并非8个位。”<sup>[1](https://www.rfc-editor.org/info/rfc1392/)</sup>《网际协议》自己的词汇表给出了等效的定义：“八位组：一个八位的字节。”<sup>[2](https://www.rfc-editor.org/rfc/inline-errata/rfc791.html)</sup>

| 关键事实 | 详细说明 |
|---|---|
| 定义 | 恰好8个位；在ABNF记法中OCTET = %x00-FF，因此一个八位组可容纳0到255之间的任意值<sup>[3](https://www.rfc-editor.org/rfc/rfc4234.html)</sup> |
| 标准符号 | 八位组的符号为o；在英语中，符号为B的字节是其同义词，标准强烈建议字节和B仅用于八位字节<sup>[4](https://standards.iteh.ai/catalog/standards/iso/73deb195-4a13-4e9e-aa8b-c5a5bd6162a3/iec-80000-13-2025)</sup> |
| 术语存在的原因 | 网络文档使用八位组，是因为某些系统的字节长度并非8位<sup>[1](https://www.rfc-editor.org/info/rfc1392/)</sup> |
| 主要用途 | 网际协议地址为固定长度，即四个八位组（32位）；互联网报头的最大长度为60个八位组，典型报头为20个八位组<sup>[2](https://www.rfc-editor.org/rfc/inline-errata/rfc791.html)</sup> |
| 历史背景 | 相关词汇“字节”由沃纳·布赫霍尔茨于1956年设计IBM Stretch期间创造，该机型使用的字节为1到8位；8位大小后来由IBM System/360推广普及<sup>[5](https://www.catb.org/jargon/html/B/byte.html)</sup> |
| 现行标准 | IEC 80000-13:2025第2版（2025年2月11日发布）规定了信息技术量的名称、符号和定义，其中包括八位组<sup>[6](https://webstore.iec.ch/en/publication/87379)</sup> |

## 定义与符号

信息技术量的国际标准IEC 80000-13将单位名称列为八位组或字节，符号为o和B，并指出两者严格来说都不是计量学意义上的单位，但通常都像单位一样书写，例如存储容量写作4 000 o或4 000 B。<sup>[4](https://standards.iteh.ai/catalog/standards/iso/73deb195-4a13-4e9e-aa8b-c5a5bd6162a3/iec-80000-13-2025)</sup>在英语中，该标准将符号为B的“字节”视为“八位组”的同义词，即八位字节。由于“字节”在历史上曾被用于表示八位以外的位数，标准强烈建议将名称和符号B限制用于八位字节，并警告符号B并非国际通用，绝不可与贝尔（bel）的符号B混淆。<sup>[4](https://standards.iteh.ai/catalog/standards/iso/73deb195-4a13-4e9e-aa8b-c5a5bd6162a3/iec-80000-13-2025)</sup>

Unicode标准遵循同样的行业惯例，将字节等同于八位组，并在所有语境中使用更熟悉的术语，同时指出许多早期体系结构使用的字节大于8位。<sup>[7](https://www.unicode.org/glossary/)</sup>

## 在网络协议中的使用

互联网协议规范一贯以八位组计量数据。1981年9月的网际协议规范RFC 791将互联网地址定义为“固定长度四个八位组（32位）”，以8个八位组（64位）为单位度量分片偏移，并以八位组给出数据报报头的总长度字段。<sup>[2](https://www.rfc-editor.org/rfc/inline-errata/rfc791.html)</sup>其计算示例展示了一个总长度为21个八位组的数据报。<sup>[2](https://www.rfc-editor.org/rfc/inline-errata/rfc791.html)</sup>

形式语法定义明确规定了大小。ABNF核心规范RFC 4234将OCTET定义为%x00-FF，即8位数据，并将“网络字节序”描述为较高值的字节优先通过网络发送的顺序。<sup>[3](https://www.rfc-editor.org/rfc/rfc4234.html)</sup>ASN.1编码规则（如ITU-T X.690和X.696）同样以内容八位组来规定编码，并定义了OCTET STRING类型，其值为一串八位组。<sup>[8](https://www.itu.int/ITU-T/recommendations/rec.aspx?lang=en&rec=4447)</sup>

## 与字节的关系

“字节”一词的出现早于固定的8位含义。它由沃纳·布赫霍尔茨于1956年在IBM Stretch计算机的早期设计阶段创造，最初描述的是1到6位的一组；向8位字节的转变发生在1956年末，这一大小后来被IBM System/360采纳并作为标准推广。<sup>[5](https://www.catb.org/jargon/html/B/byte.html)</sup>Stretch的设计本身将固定字长运算与可变字长运算相结合，后者中的字可由1到8位的字节组成。<sup>[9](https://mark.people.clemson.edu/stretch.html)</sup>System/360项目负责人、后来的图灵奖得主弗雷德·布鲁克斯将为System/360选择八位字节视为他在IBM职业生涯中最重要的技术决策，并指出布赫霍尔茨给Stretch赋予了1到8位的可变字节长度，用他的话说，这是一种没有人愿意重蹈的奢侈。<sup>[10](https://amturing.acm.org/pdf/BrooksTuringTranscript.pdf)</sup>IBM自己的历史记载将开创至今仍在计算机上使用的八位字节体系结构的功劳归于1964年4月7日推出的System/360。<sup>[11](https://www.ibm.com/history/system-360?mhq=System+360&mhsrc=ibmsearch_a)</sup>

一旦8位成为近乎通用的大小，实际区别就缩小了。Unicode词汇表记载，业界已几乎统一标准化为8位字节，这就是如今字节和八位组一般可以互换的原因。<sup>[7](https://www.unicode.org/glossary/)</sup>协议文档保留“八位组”一词是作为精确性的保障，而非因为歧义在当前硬件中普遍存在。

## 标准化

八位组出现在信息量的国际参考标准IEC 80000-13《量和单位 第13部分：信息科学与技术》中，该标准由IEC第25技术委员会与ISO/TC 12密切合作制定。<sup>[6](https://webstore.iec.ch/en/publication/87379)</sup>现行第2版于2025年2月11日发布，取消并取代2008年的第1版，新增了可与八位组组合使用的二进制倍数新前缀，如千八位组每秒，符号ko/s。<sup>[6](https://webstore.iec.ch/en/publication/87379)</sup><sup>[4](https://standards.iteh.ai/catalog/standards/iso/73deb195-4a13-4e9e-aa8b-c5a5bd6162a3/iec-80000-13-2025)</sup>

## References

1. [RFC 1392: Internet Users' Glossary, RFC Editor](https://www.rfc-editor.org/info/rfc1392/)
2. [RFC 791: Internet Protocol (with inline errata), RFC Editor](https://www.rfc-editor.org/rfc/inline-errata/rfc791.html)
3. [RFC 4234: Augmented BNF for Syntax Specifications: ABNF, RFC Editor](https://www.rfc-editor.org/rfc/rfc4234.html)
4. [IEC 80000-13:2025 preview, standards.iteh.ai](https://standards.iteh.ai/catalog/standards/iso/73deb195-4a13-4e9e-aa8b-c5a5bd6162a3/iec-80000-13-2025)
5. [byte, The Jargon File (catb.org)](https://www.catb.org/jargon/html/B/byte.html)
6. [IEC 80000-13:2025, IEC Webstore](https://webstore.iec.ch/en/publication/87379)
7. [Unicode Glossary, Unicode Consortium](https://www.unicode.org/glossary/)
8. [ITU-T X.690 (ASN.1 encoding rules), ITU-T Recommendations](https://www.itu.int/ITU-T/recommendations/rec.aspx?lang=en&rec=4447)
9. [Organization Sketch of IBM Stretch, Mark Smotherman, Clemson University](https://mark.people.clemson.edu/stretch.html)
10. [Frederick P. Brooks, Jr. Turing Award lecture transcript, ACM](https://amturing.acm.org/pdf/BrooksTuringTranscript.pdf)
11. [The IBM System/360, IBM history](https://www.ibm.com/history/system-360?mhq=System+360&mhsrc=ibmsearch_a)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 19, 2026; Oct 15, 2026 · Edited: Sep 19, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 测量与时间 › 计量单位与单位制 › Units by physical quantity › Units of information

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/octet-computing

English original: https://www.edgepedia.org/octet-computing
