ddm: consider proper interface scope handling for link-local peers

Aperta
#688 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Start by tracing the ddmadm expire-peer operation to AdminEvent::Expire(addr) and the interface FSMs that consume it. Review how peer routes are stored in the DB and how link-local addresses are represented across interfaces. Done means the expire operation and route handling distinguish the same link-local address on different interfaces, with coverage for the relevant behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

ddm rust

While working on some updates to FSM state tracking for DDM, I observed that ddmadm expire-peer takes an IP as an argument but no interface (name, addrobj, ifindex, or any other representation) even though we peer over link-local addresses.

That seemed odd to me so I dug a little bit further.

The expire-peers operation triggers an AdminEvent::Expire(addr) event that's sent to every interface FSM, who then compares that addr against their peer addr. The event wraps just an Ipv6Addr so it doesn't have any scope_id included, nor does it filter the FSM event just to one interface FSM that corresponds to the (IP, scope) tuple.

Additionally, routes are stored in the DB with just a peer address and no next-hop interface, which presumably means we are relying on NDP for installation to work properly.

While this has all worked well in practice, it would probably be a good idea to ensure proper handling of the same link-local IPs learned via multiple interfaces to be more robust in the face of an unforeseen issue (e.g. improper MAC assignment during sled manufacturing).

Lingua principale
Rust
Stelle
100
Fork
8
Merge medio
2g 1h
PR unite (30g)
18

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oxidecomputer/maghemite

Tutte le issue di oxidecomputer/maghemite

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.