Recast route caching as an LPM, make multipath decisions locally

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust
領域
networking

調査の方向性

PR #499 とリンク先のディスカッションから始め、next_hop の前段にあるキャッシュと、IRE にリンクされたルートエントリを追跡します。キャッシュが LPM クエリを使用し、IRE の完全なルートセットが更新され、multipath の選択がローカルで行われれば完了です。

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

説明

customer perf

As of #499, we have a fairly simple cache in front of calls to next_hop. However, this includes the L4 Hash as part of the lookup key to maintain path diversity between flows, as we route via a chosen underlay device each time. As a result, this is going to have fairly poor scaling characteristics.

See the discussion on that PR: we can vastly reduce the number of entries we need, and cast the lookup as an LPM query. However, to do so we need to:

  • Walk and refresh the entire set of route entries linked in an IRE, which will reimplement some logic from illumos,
  • Locally decide between multiple routes.

Doing so will allow us to maintain a shared route cache of O(sleds), and/or make use of per-packet multipath if we choose to.

主要言語
Rust
スター
82
フォーク
16
平均マージ
3日 6時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

oxidecomputer/opte のほかの issue

oxidecomputer/opte の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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