# 帧聚合

帧聚合是[IEEE 802.11](https://www.edgepedia.org/zh/ieee-802-11)无线网络中一种介质访问控制（MAC）层技术，它将多个数据帧打包成一个单一的大帧，作为一个物理层单元进行传输，从而使帧头、帧间间隔和确认等固定的每帧开销只需支付一次，而非每个数据包支付一次。[IEEE 802.11n](https://www.edgepedia.org/zh/ieee-802-11n)修正案于2009年发布，以Wi-Fi 4的名义推向市场，它引入了帧聚合以及块确认作为其主要的MAC效率机制，而后来的802.11ac和802.11ax等修正案则保留并扩展了这些机制。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup><sup> • </sup><sup>[2](https://standards.ieee.org/beyond-standards/the-evolution-of-wi-fi-technology-and-standards/)</sup>

| 关键事实 | 详情 |
|---|---|
| 标准化于 | IEEE 802.11n（2009年），定义了两种方案：A-MSDU和A-MPDU<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup> |
| A-MSDU最大长度 | 每个聚合帧3839字节<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup> |
| A-MPDU最大长度 | 802.11n中为65,536字节；802.11ac中为1024 KB<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup><sup> • </sup><sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> |
| 子帧限制 | 每个A-MPDU最多64个子帧，由64位块确认位图决定<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup><sup> • </sup><sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> |
| 错误行为 | A-MSDU在任何损坏后重传整个捆绑包；A-MPDU通过块确认仅重传受损子帧<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup> |
| 建模陷阱 | 忽略块确认窗口限制的模型在错误信道中对平均聚合大小的估计偏差高达190%<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> |

## 聚合为何存在

在传统802.11中，每个数据帧都携带自己的MAC帧头和帧校验序列（FCS），竞争信道，等待帧间间隔，并需要自己的确认。对该标准的研究表明，即使OFDM、MIMO、波束成形和更宽信道等物理（PHY）层进步提高了原始数据速率，这种信道接入方法和控制帧交换开销仍然是802.11性能的主要限制。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> 帧聚合通过将许多帧组合成一个在传输期间被视为单一单元的大帧来解决这个问题，因此一次退避、一个PHY帧头和一个确认就能覆盖许多数据包。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/article/pii/S014036642100356X)</sup>

对于小数据包，增益最大。例如，一个VoIP数据包在80字节的RTP/UDP/IP前导码下可能携带大约30字节的有效载荷，因此每帧开销在空口时间中占主导地位；将许多这样的数据包聚合到一次传输中可以恢复大部分容量。<sup>[5](https://www.techscience.com/iasc/v31n2/44547/html)</sup>

## 两种方案

**A-MSDU。** MAC服务数据单元聚合将多个MSDU（从上层递交下来的有效载荷）组合成一个单一的MPDU。每个子帧携带一个14字节的帧头，包括目的地址（6字节）、源地址（6字节）和长度（2字节），随后是最多2304字节的MSDU以及0到3字节的填充，使每个MSDU保持为四字节的倍数，以便接收端对齐去聚合。<sup>[6](https://www.techscience.com/cmc/v66n2/40658/html)</sup> 一个MAC帧头和一个FCS覆盖整个捆绑包，在两种方案中提供最小的帧头开销。A-MSDU中的所有子帧必须共享相同的发送方和接收方地址以及相同的QoS接入类别，因此语音、视频和尽力而为流量不能混合在一个聚合中。<sup>[6](https://www.techscience.com/cmc/v66n2/40658/html)</sup>

**A-MPDU。** MAC协议数据单元聚合在MAC层的底部运行，此时每个MSDU已经获得了自己的MAC帧头和FCS。完全成形的MPDU被打包在一个公共PHY帧头之下，形成一个物理层服务单元，每个MPDU前面有一个4字节的MPDU定界符，包含长度字段、8位CRC和一个签名字节（0x4E），使接收端在子帧损坏后能够重新同步。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup><sup> • </sup><sup>[7](https://802universe.com/wiki/aggregation-and-block-ack/)</sup> 由于每个子帧保留自己的FCS，完整性按子帧检查，一个子帧的损坏不会影响其他子帧。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup>

## 块确认

聚合与块确认技术配对使用，该技术首先由802.11e修正案定义，它用一个块确认帧来确认一个数据包块，而非每帧一个ACK。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> 为802.11n引入的压缩块确认变体携带一个起始序列号子字段和一个64位位图，每个子帧对应一位，这就是A-MPDU中最多只能聚合64个子帧的原因。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup> 块确认会话通过ADDBA交换建立，协商流量标识符、缓冲区大小和超时时间，接收方将接收到的子帧保存在重排序缓冲区中，直到序列完整。<sup>[7](https://802universe.com/wiki/aggregation-and-block-ack/)</sup>

窗口限制有一个简单模型忽略的后果：由于发送方不能传输会落在确认窗口之外的帧，第一个未确认子帧的位置约束了下一个聚合可以包含多少个子帧。忽略这一效应的分析模型在错误环境中产生的平均聚合大小估计误差高达190%，在普通信道条件下的吞吐量和接入延迟估计中也会产生误差；跟踪第一个未确认帧位置的马尔可夫模型与ns-3仿真更为吻合。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup>

## 在两种方案之间选择

权衡在于帧头效率与错误恢复能力之间。在无错误信道上，A-MSDU优于A-MPDU，因为它在单一PHY和MAC帧头下传输多个数据包，且两种方案的吞吐量都随着聚合数据包的增多而上升。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup> 当信道容易出错时，情况反转：如果A-MSDU中任何MSDU受损，整个聚合必须重传，而A-MPDU利用块确认位图和每子帧FCS选择性地仅重传损坏的子帧。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup><sup> • </sup><sup>[6](https://www.techscience.com/cmc/v66n2/40658/html)</sup> 因此A-MPDU聚合对信道条件极为敏感，因为随着错误累积，块确认窗口限制会封顶最大聚合大小。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup>

**两级聚合。** 802.11n还允许将A-MSDU嵌套在A-MPDU的MPDU内部，将第一级的帧头效率与第二级的选择性重传结合起来。在这种方案中，具有相同接收方的MSDU被分组为一个A-MSDU，而这些A-MSDU被分组为一个A-MPDU；任何MPDU的损坏仍然只导致被破坏部分的重传。<sup>[8](https://shankarwifi.com/frame-aggregation/)</sup><sup> • </sup><sup>[9](https://cdn.techscience.cn/ueditor/files/iasc/TSP_IASC-31-2/TSP_IASC_20415/TSP_IASC_20415.pdf)</sup> 该标准仅规定了帧格式和最大尺寸；MSDU和MPDU子帧的最佳数量尚未确定，取决于误码率、数据速率、数据包大小和帧头开销。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)</sup>

## 实际使用与限制

实际部署倾向于A-MPDU。商用802.11n硬件的经验表明，A-MSDU通常不用于传输，而A-MPDU与块确认一起运行，使得聚合中的所有数据帧由单一控制帧确认。<sup>[10](https://discovery.ucl.ac.uk/id/eprint/10160420/1/Zhushi__Thesis.pdf)</sup> Linux mac80211子系统提供发送和接收两个方向的聚合支持：驱动程序通告发送和接收聚合子帧的限制，接收端聚合仅需一个ampdu_action回调来启动和停止块确认会话，而协议栈管理重排序缓冲区。<sup>[11](https://cdn.kernel.org/doc/html/latest/driver-api/80211/mac80211.html)</sup><sup> • </sup><sup>[12](https://kernel.org/doc/html/v4.16/driver-api/80211/mac80211-advanced.html)</sup>

聚合还与流量类型相互作用。对于延迟敏感的VoIP，已经提出了限制等待子帧填满聚合所需时间的聚合技术，例如通过紧迫性延迟度量或自适应大小阈值，以将延迟和数据包丢失保持在服务质量限制之内；一种在ath9k驱动程序中以150 Mbps PHY速率实现的此类技术比默认驱动程序实现提高了160%的吞吐量。<sup>[9](https://cdn.techscience.cn/ueditor/files/iasc/TSP_IASC-31-2/TSP_IASC_20415/TSP_IASC_20415.pdf)</sup> 对于组播流量，802.11n允许即时块确认策略，当至少一个聚合MPDU的ACK策略设置为正常ACK时，单个PPDU携带一个A-MPDU。<sup>[13](https://www.labri.fr/perso/tad/publications/IEEE802Aggregation%20performances%20study%20for%20multicast.pdf)</sup>

后来的修正案提高了上限。最大A-MPDU长度从802.11n的64 KB增长到802.11ac的1024 KB，支持VHT/HE的设备可以通过信令通告更大的最大MPDU长度，在相应能力下A-MSDU大小可达11,454字节。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup><sup> • </sup><sup>[7](https://802universe.com/wiki/aggregation-and-block-ack/)</sup> 由于该机制具有延续性，正确捕捉块确认窗口限制的分析模型适用于802.11n、802.11ac及该标准后来基于聚合的版本。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)</sup>

## References

1. [Kim et al. (2015). Adaptive Two-Level Frame Aggregation for Fairness and Efficiency in IEEE 802.11n Wireless LANs. Mobile Information Systems.](https://onlinelibrary.wiley.com/doi/10.1155/2015/548109)
2. [IEEE SA. The Evolution of Wi-Fi Technology and Standards.](https://standards.ieee.org/beyond-standards/the-evolution-of-wi-fi-technology-and-standards/)
3. [Jabri et al. (2022). Enhanced characterization and modeling of A-MPDU aggregation for IEEE 802.11n WLANs. Transactions on Emerging Telecommunications Technologies.](https://onlinelibrary.wiley.com/doi/10.1002/ett.4384)
4. [Demystifying frame aggregation in 802.11 networks: Understanding and approximating optimality. Computer Communications.](https://www.sciencedirect.com/science/article/pii/S014036642100356X)
5. [Investigation of Techniques for VoIP Frame Aggregation Over A-MPDU 802.11n. Intelligent Automation & Soft Computing.](https://www.techscience.com/iasc/v31n2/44547/html)
6. [Survey and Analysis of VoIP Frame Aggregation Methods over A-MSDU IEEE 802.11n Wireless Networks. CMC.](https://www.techscience.com/cmc/v66n2/40658/html)
7. [Aggregation & Block Ack, 802.11 Reference.](https://802universe.com/wiki/aggregation-and-block-ack/)
8. [Frame Aggregation: A-MSDU and A-MPDU, 802.11 Protocol Library.](https://shankarwifi.com/frame-aggregation/)
9. [Investigation of Techniques for VoIP Frame Aggregation Over A-MPDU 802.11n (PDF).](https://cdn.techscience.cn/ueditor/files/iasc/TSP_IASC-31-2/TSP_IASC_20415/TSP_IASC_20415.pdf)
10. [Zhushi. Cross-Layer Techniques for Efficient Medium Access in Wi-Fi Networks, UCL thesis.](https://discovery.ucl.ac.uk/id/eprint/10160420/1/Zhushi__Thesis.pdf)
11. [mac80211 subsystem (basics), The Linux Kernel documentation.](https://cdn.kernel.org/doc/html/latest/driver-api/80211/mac80211.html)
12. [mac80211 subsystem (advanced), The Linux Kernel documentation.](https://kernel.org/doc/html/v4.16/driver-api/80211/mac80211-advanced.html)
13. [IEEE 802.11n Aggregation Performance Study for the Multicast (PDF).](https://www.labri.fr/perso/tad/publications/IEEE802Aggregation%20performances%20study%20for%20multicast.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Wireless networking › Wi-Fi standards and security › 802.11 physical and MAC layer mechanisms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/frame-aggregation

English original: https://www.edgepedia.org/frame-aggregation
