Proposal: Indexed cell masks for heterogeneous GetCells requests

オープン
#282 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発

調査の方向性

まず、リンクされているドラフト仕様と EIP-8070 GetCells プロトコルのコンテキストを読みます。次に、報告されたリクエストトレースと sparse-node に関する観測結果を確認し、indexed response に関する simulator のギャップを評価します。heterogeneous recovery mask が標準化を正当化するかどうか、また、どの測定値または devnet 条件をその判断のゲートとすべきかについて決定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

I would like feedback on an extension to EIP-8070's eth/72 cell retrieval protocol for batches where different blob transactions require different cell masks.

The current GetCells message applies one 128-bit mask to every transaction hash. Clients must therefore split a scheduling batch by exact mask equality. This is efficient for normal custody-aligned sampling, but partial delivery and recovery can produce transaction-specific missing-cell sets and fragment one logical batch into several requests.

Proposed wire format

A future eth version would retain the existing shared forms and add indexed forms:

GetCells shared:
[request_id, hashes, cell_mask]

GetCells indexed:
[request_id, hashes, masks, mask_ids]

Cells shared:
[request_id, hashes, cells, cell_mask]

Cells indexed:
[request_id, hashes, cells, masks, mask_ids]

masks is a deduplicated table of 128-bit masks. mask_ids contains one byte per transaction hash and selects the corresponding table entry.

The indexed Cells form is necessary because the existing response has one shared mask and cannot describe transaction-specific partial responses.

The shared form remains mandatory when every transaction uses the same mask. Indexed encoding is used only when it reduces the request count or encoded size.

Canonical validation and limits

The draft requires:

  • equal hash and mask-ID counts;
  • at most 64 hashes and 64 unique masks;
  • unique hashes and masks;
  • in-range mask IDs;
  • no unused mask-table entries;
  • mask-table ordering by first reference;
  • response masks that are subsets of the corresponding request masks;
  • validation before allocating cell-response storage; and
  • identical request, response, and peer quotas for shared and indexed forms.

Evidence so far

Controlled request traces show a conditional benefit when missing-cell masks are highly fragmented. For example, synthetic 64-transaction workloads collapsed 8-64 shared-mask requests into 1-4 indexed requests, with request-side wire-byte reductions of roughly 15-63% in those cases.

However, a corrected sparse-node observation recorded 92 scheduling batches and zero fragmented batches. That is negative evidence for deploying a new wire version today. The response-side indexed format also needs to be added to the simulator before claiming an end-to-end byte reduction.

I am opening this issue to determine whether execution-client teams expect heterogeneous recovery masks to become common enough to justify standardization.

Draft specification

https://github.com/vbhattaccmu/EIPs/blob/eth73-indexed-cell-requests/EIPS/eip-draft_indexed_cell_requests.md

Questions

  1. Are transaction-specific missing-cell masks expected under realistic sparse blobpool recovery workloads?
  2. Can client-local scheduling avoid the fragmentation without a protocol change?
  3. Is a canonical indexed table preferable to parallel per-transaction masks?
  4. Which measurements or devnet conditions should gate an eth successor proposal?
主要言語
JavaScript
スター
1.1k
フォーク
301
平均マージ
12時間 3分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ethereum/devp2p のほかの issue

ethereum/devp2p の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。