BGP FSM handles changes to passive_tcp_establishment poorly

Aperta
#805 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Inizia con la FSM di SessionRunner e la gestione degli stati Active e Connect, quindi traccia ConnectRetryTimer e il valore passive_tcp_establishment. Definisci un percorso di evento o timer della FSM che osservi le modifiche ed esegua le transizioni appropriate; il lavoro è completato quando i peer passivi rimangono in Active, mentre l’instaurazione in uscita abilitata avvia una connessione e passa a Connect.

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

Descrizione

bgp Bug mgd needs testing rust

Passive TCP Establishment for a BGP FSM indicates that it will not attempt to make any outbound connections, instead waiting for inbound connections.

In our implementation:

  1. an active (!passive) peer will have its FSM park in the Connect state while it kicks off asynchronous connection attempts when the ConnectRetryTimer fires, and it waits for either inbound or outbound connections to complete.
  2. a passive peer will have its FSM park in the Active state while it waits for inbound connections and the ConnectRetryTimer will not run.

While changes to passive_tcp_establishment are visible (via lock!(self.session).passive_tcp_establishment) from the SessionRunner (FSM), there isn't consistent and well-planned logic to ensure the FSM changes its behavior appropriately.

We need some kind of FSM event to notify the SessionRunner it needs to take action. Its handler should react by checking passive_tcp_establishment: stay in Active if false, kick off new outbound connection and transition to Connect if true.

A couple options:

  1. Add a new Admin FSM event indicating there's been a change to passive_tcp_establishment
  2. Piggyback on ConnectRetryTimer.

If we go with (2) then we need to start running that timer in Active regardless of whether the session is passive.

Regardless of which FSM event we use, we need the handler to check passive_tcp_establishment and transition between Active/Connect appropriately.

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.