Struct MoqPreset
pub struct MoqPreset;Expand description
iroh’s N0 preset with BBR3 congestion control.
It sets what iroh’s presets::N0 sets: n0’s pkarr publisher and resolver,
its DNS address lookup and the default iroh relays. The crypto provider is
crypto_provider, the backend this crate’s
features select, where iroh’s preset would pick one by iroh’s own tls-*
features.
Works anywhere iroh takes a preset:
let endpoint = iroh::Endpoint::bind(iroh_live_node::MoqPreset).await?;moq-net sends every subscriber the publisher’s send-rate estimate,
cwnd / rtt. A live publisher sends less than the link could take, and
under CUBIC, iroh’s default, its window grows until something is lost, so
the estimate shows room to spare on a full link. BBR3 sizes the window from
the delivery rate it measures, so the estimate tracks the link.
With the qlog feature, the endpoint writes a qlog trace of each
connection into QLOGDIR, see Congestion::transport_config.