---
eip: 8136
label: EIP-8136
title: Cell-Level Deltas for Data Column Broadcast
status: Last Call
type: Standards Track
category: Networking
created: 2025-01-23
requires: 7594
official: https://eips.ethereum.org/EIPS/eip-8136
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8136.md
canonical: https://eips.huatuo.xyz/zh/eip-8136/
lang: zh
tldr: 让 PeerDAS 节点只交换对端缺少的 blob cell，而不是整列数据，在无需硬分叉的情况下节省带宽。
tags: [peerdas, blobs, networking, gossipsub, data-availability]
---

# EIP-8136: Cell-Level Deltas for Data Column Broadcast

> Optimization for disseminating only previously unseen cells to the network for PeerDAS.

**TL;DR:** 让 PeerDAS 节点只交换对端缺少的 blob cell，而不是整列数据，在无需硬分叉的情况下节省带宽。

## 它解决什么问题？

在 PeerDAS（[EIP-7594](/eip-7594/)）中，blob 数据会被扩展并拆分成**数据列（data column）**，每一列被 gossip 给负责它的节点。一列包含区块中每个 blob 的一个 **cell**。

区块中的大多数 blob 此前已经在公共内存池中见过，因此节点通常在区块到达之前就已经持有一列中的大部分 cell。如今它仍然必须通过 gossip 接收整列；而且只要本地缺少哪怕一个 blob，共识客户端就必须等待整列到达，数据可用性检查才能通过。这对节点已有的数据浪费了带宽，并增加了等待时间。

## 它如何运作

- 这项优化基于 gossipsub 的 **Partial Messages Extension**。数据列不再被视为不可分割的单条消息，而是支持该扩展的对等节点之间交换**位图**，表明各自已经持有一列中的哪些 cell。
- 节点随后**只请求缺失的 cell**，对端也只提供这些 cell。当几乎所有内容都已在本地内存池中时，网络上只需传输少数几个 cell。
- 传播默认变为**拉取式**（索取自己缺少的），而不是推送式（发送全部）。作为客户端策略，仍然允许主动推送。
- gossipsub 的 mesh、gossip 规则和对等节点评分保持不变。如果连接的任何一方不支持该扩展，双方就像以前一样交换完整的数据列。
- 由于这是一项可选加入的网络层改动，它**无需硬分叉**，可以逐个客户端上线。规范性细节位于 ethereum/consensus-specs 仓库，而不在 EIP 正文中。

作者否决了这些替代方案：每个 cell 一条 gossip 消息（每条消息的开销太大，也缺少区块上下文）、单独的 RPC 方法（会在 gossip 之外增加负载）以及全新的协议（改动太大）。

## 示例代码

体现该思路的示意伪代码（不是线上格式，线上格式由 consensus-specs 定义）：

```python
# Cells of one data column we already reconstructed from mempool blobs
have = bitmap(len(blobs_in_block))
for i, blob in enumerate(blobs_in_block):
    if mempool.has(blob.versioned_hash):
        have[i] = 1
        cells[i] = compute_cell(blob, column_index)

# Tell a supporting peer what we hold; it answers with only the gaps
peer.send_partial(column_id, have_bitmap=have)
for i, cell, proof in peer.receive_cells(column_id):
    if verify_cell_kzg_proof(commitments[i], column_index, cell, proof):
        cells[i] = cell

if all(have_or_received(cells)):
    mark_column_available(column_id)
```

## 需要注意

- **状态：Last Call**（类别：Networking）。在成为 Final 之前仍可能改变。
- 与主动推送相比，默认的拉取式传输会增加少量延迟，以换取更低的带宽；预期客户端会调整推送策略，并在上线期间关注这一指标。
- 为避免网络分裂，客户端不应偏好支持该扩展的对等节点；无论对等节点是逐个发送 cell 还是一次性全部发送，评分都应相同。
- 实现需要防范对等节点用大量不同的 group ID 发送垃圾消息。
- 它建立在 [EIP-4844](/eip-4844/) 的 blob 交易之上，只与 blob 数据的分发有关。


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8136
