Elaborate on the streaming capabilities of RLPx and devp2p

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞

調査の方向性

参照されているdevp2p issue commentから始め、RLP encodingから application protocols、compression、encryption、muxing、transportまで、RLPx/devp2p stackを追跡します。どのレイヤーがストリーミングを維持するのか、どのメッセージをストリーミング可能にすべきなのか、そしてそれがメモリ使用量と中断された転送にどのような影響を与えるのかを文書化します。

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

説明

transport

Reposting from https://github.com/ethereum/devp2p/issues/71#issuecomment-483364828.

do any of the layer of the RLPx/devp2p stack break the streaming assumptions or not?

  • RLP encoding, is it streaming and if so does it propagate all the way down to the - protocol/transport
  • eth/X application level protocols, which messages are/should be streamable
  • compression?
  • encryption?
  • muxing
  • transport, etc...

Some benefits of streaming are:

  • lower memory footprint
    • no need to fetch all data ahead of time before sending out, this is important when large amounts of data need to be fetched from some sore (fs or local db).
  • potential to decrease on the wire traffic
    • e.g. if a client requests some data, but midway thru it realizes that the data is stale, it can end the operation without waiting for the full sequence to be transmitted

In general, a stack that allows and encourages streaming fits really well with the overall requirements of Ethereum - i.e. sending sequences of blocks, or chunks of state are a natural fit for that. I believe this approach has great optimization potential, specially when viewed in the context of fast/warp sync.

主要言語
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 を短くまとめたダイジェスト。