Skip to main content

67 posts tagged with "network"

View All Tags

Network Team Update

· 13 min read
Marcin Szamotulski
Network Team Lead

Overview​

Summary​

Ouroboros-Network​

We released network-mux-0.12.0.0, ouroboros-network-1.3.0.0 and cardano-diffusion-1.3.0.0, followed by the ouroboros-network 2.0 release, which dmq-node has already adopted. cardano-diffusion 1.1.0.0 and 1.1.1.0 were released earlier.

Tx-submission. The V2 tx-submission without a central decision thread was merged. Since then we fixed duplicate txids in the outbound side, fixed truncated duration counters (waits shorter than a millisecond were counted as zero), switched outbound calculations to Int, and made awaitSharedChange an STM action so dmq-node can resolve races in a single transaction. NodeToNodeV_16 with configurable tx-submission limits was merged. Bounding the work done during a sweep (at most 1000 entries per STM transaction) is in progress.

Network-mux. Mux SDU header encoding/decoding is now about 70% faster and allocates over 90% less. The mux now forces the first 256 KiB of a message in the sender's thread, so an unevaluated encoding waiting in the egress buffer no longer retains whatever it refers to. Mux counters were added, enabling per-mini-protocol dashboards. Fixes to mux timeouts (cancelling timeouts when actions throw and keeping timeout monitors cancellable under masking) are in review, and an RTT-aware mux using echo-cookie RTT sampling is being prototyped. Work has started on a mux egress scheduler, which serves bearers by tiers and tracks egress counters and busy periods, alongside batching changes in the mux (withBatch, GrantAt).

Connection manager & inbound governor. Several race conditions were fixed: connection-manager / inbound-governor races (including a connection leak), a race on new connections in the inbound governor (with a new IOSimPOR test), and the inbound governor no longer blocks on a stale MuxFinished. Two small memory leaks were fixed, in the KeepAlive server and in cardano-node's acceptAcceptor. The diffusion layer now filters configured or negotiated mini-protocols before passing them to the mux.

Peer selection. Peers whose peer-share request failed are now backed off (default 1 hour), and the peer-share time is only updated for peers we are still connected to. Topology reload of local roots given as IP addresses is fixed (previously they waited for DNS-named local roots, never updating when there were none). DNS TTL handling was fixed, and upstreamyness tracing was added, also reducing the likelihood of immediately re-promoting hot peers. We also added a Hashable API, and work on running diffusion on multiple network interfaces is in review.

Ping. The ping API for validating SRV records / registration certificates was merged, to be used by cardano-cli, together with output formatting improvements; further output improvements are in review.

Window-stats. A new window-stats library provides efficient rolling-window statistics backed by a finger tree — a first step towards exposing connection metrics to applications. It already powers the Leios percentile metrics in cardano-node. Follow-ups include API changes, renaming and an insert performance fix.

Smol-world. We are building smol-world, a discrete-event simulator with a realistic transport model (loss, RFC 6298 RTO, CUBIC congestion control per RFC 9438) on a small-world topology with per-node egress contention, to study diffusion at scale. TCP model refinements are in review.

Leios​

The improved ΔQ analysis of Linear Leios EB diffusion was merged. It fixes three bugs in the earlier model, sweeps over EB closure sizes to determine practical limits, and analyses the sensitivity to mempool fragmentation (1-hop vs. multi-hop closure fetch, TxCache miss rate). We also published the incremental decoding benchmark results in the Leios design document. In cardano-node we added CDFs of EB announcement delays (with a follow-up fix) and fixed the Praos CDF; replacing the CDFs with p90/p95/p99 percentiles is in review.

We are also experimenting with a whole-closure store-and-forward EB fetch policy with bounded hedging in ouroboros-consensus: a peer offers a closure only once it holds all of it, receivers request only the missing transactions, and RTT-aware deadlines trigger hedged requests to alternative suppliers when progress stalls. In a 64-node cardano-ignite experiment it reduced median time for a closure to reach all nodes from 5.6 s to 4.1 s, and cut redundant closure payload from 86 MB to 1 MB (amplification 1.53× → 1.01×).

DMQ-Node​

We released dmq-node-0.7.0.0 (ouroboros-consensus-4.0, ouroboros-network-1.2, GHC-9.14 support) and dmq-node-0.7.2.0, and updated to ouroboros-network-2.0 and ouroboros-consensus-5.2. Integration for Node release 11.1 was completed. Other changes include peer-sharing timeouts and an explicit CBOR decode error for local message notification, changes to the signature outbound side, lowering the minimum signature body size to 90 bytes, an internal --min-sig-delay flag, a custom validation config fix, and running Hydra CI on aarch64-linux.

IOSim, io-classes & typed-protocols​

io-classes-1.11 and typed-protocols-1.2.2.0 were released. An io-sim performance fix (reverting eager evaluation of say/traceM/traceSTM arguments) was merged, and ppSayTrace was added. A fix for timeout raising a stale exception after it returned and a TimeDuration type class are in review. IOSimPOR gained finer control over which threads take part in schedule exploration (explorationRacyByLabel, with labelled fork/async variants); this is in review.

Ouroboros-Network​

PR / IssueStatusNotes
Changelog for ouroboros-network 2.0 releasemerged
Release network-mux-0.12, ouroboros-network-1.3, cardano-diffusion-1.3merged
Release cardano-diffusion-1.1.1.0mergedcontribution by f-f
Release cardano-diffusion-1.1.0.0merged
V2 tx-submission without a decision threadmerged
tx-submission configurable limits (NodeToNodeV_16)merged
tx-submission outbound: duplicate txidsmerged
tx-submission: fix truncated duration countersmerged
tx-outbound: Int based calculationsmerged
awaitSharedChange as an STM actionmerged
Tx-submission V2 bounded sweepin progress
Removed partial functions from tx-submission outboundin review
Mux countersmerged
Encode a message's first 256 KiB in sendmerged
More performant mux header encoding / decodingmerged
Mux timeout fixesin review
RTT-aware muxin progress
Mux egress schedulerin progress
mux: withBatch logicin review
Inbound governor changesmerged
Fixed inbound governor race conditionmerged
Prevent some CM/IG racy situationsmerged
Fixed a small memory leak in KeepAliveServermerged
Filter mini-protocolsmerged
Optional JobPool completion queuesmerged
Back off peer-share sources whose request failedmerged
Peer sharing time fixmerged
Fix topology reload of IP address relaysmerged
DNS TTL fixesmerged
Upstreamyness tracingmerged
Hashable APImerged
Drop NodeToClient versionsmerged
Support multiple interfacesin review
Refactored withPeerSelectionActionsin review
Fixed NetworkMagic range check on 32-bit platformsin review
Ping API for registration certificate validationmerged
cardano-ping and formattingmerged
ping: improved outputin review
window-stats: efficient rolling window statisticsin review
Changes to window-stats librarymerged
window-stats changesin review
window-stats: fix insert performancein review
smol worldin progress
smol-world changesin review
BlockFetchConsensusInterface: add matchedBlockmergedcontribution by nfrisby
cardano-diffusion: label ledger peer usagein reviewcontribution by dancewithheart
CI: cache consistencymerged
Added +nightly flag on nightly buildsmerged

Leios​

PR / IssueStatus
Improved ΔQ analysis for Linear Leios EB diffusionmerged
Incremental decoding benchmark resultsmerged
Produce CDF of time to transmit a datum over TCPin progress
CDFs for EB announcementsmerged
Fix for CDF announcement metricsmerged
Fix Praos CDFmerged
Leios statistics (percentiles)in review
Whole closure store and forward, fetch/hedge policyin progress

DMQ-Node​

PR / IssueStatusNotes
Update to ouroboros-network-2.0 and ouroboros-consensus-5.2mergedcontribution by koslambrou
Release dmq-node-0.7.2.0merged
Release dmq-node-0.7.0.0merged
Integration for Node release 11.1mergedcontribution by f-f
sig-outbound changesmerged
Local msg notification codec & peer sharing configurationmerged
Fixed custom validation config bugmerged
Added --min-sig-delay flagmerged
Lower minSigBodySize to 90 bytesmerged
Run Hydra on aarch64-linuxmerged

Cardano-Node​

PR / IssueStatus
Fixed a small memory leak in acceptAcceptormerged

IOSim, io-classes & typed-protocols​

PR / IssueStatus
io-classes-1.11, new release of typed-protocolsmerged
io-sim performance fixmerged
Added ppSayTracemerged
Masked timeout fixin review
Added TimeDuration type classin review
IOSimPOR: racyByLabelin review

Network Team Update

· 4 min read
Marcin Szamotulski
Network Team Lead

Overview of sprints 115 and 116.​

Summary​

Leios​

Work on a Monte Carlo simulation of TCP CUBIC congestion — producing CDFs of payload transfer time accounting for slow start, congestion avoidance, and packet losses — is ongoing. The TxSubmission V2 design without a central decision thread remains under review.

Ouroboros-Network​

The long-standing cardano-ping reimplementation using ouroboros-network was merged. Building on that, pingClient was exposed as a standalone API, and a new ping endpoint for validating SRV records and registration certificates is in review. A performance optimisation was merged: KnownPeers.setCurrentTime and EstablishedPeers.setCurrentTime — called on every governor loop iteration — now short-circuit in the common case, avoiding a full record rebuild and invariant check. NodeToClientV_24 for the ValidateTx local-state query and ledger-peer usage labelling remain in review.

DMQ-Node​

The connecting the DMQ kernel to cardano-node was merged which restructures how dmq-node connects to cardano-node. Several correctness fixes accompanied it: identifying the correct ledger era for local state queries (fixing a crash on era transitions due to a hardcoded Conway era query) and fixing big-ledger-peer query results (slot was erroneously set to maxBound). Integration for the forthcoming Node release 11.1 is underway.

Leios​

PR / IssueStatus
Produce CDF of time to transmit a datum over TCPin progress
TxSubmission V2 without a decision threadin review

Ouroboros-Network​

PR / IssueStatusNotes
Add ping API for registration certificate validationin review
network-mux:test — code stylein review
Expose pingClientmerged
Efficient common case for setCurrentTimemerged
Allow QuickCheck 2.18in review
cardano ping implemented with ouroboros-networkmerged
Add NodeToClientV_24 for ValidateTx queryin review
cardano-diffusion: label ledger peer usagein reviewcontribution by dancewithheart

DMQ-Node​

PR / IssueStatus
Integration for Node release 11.1in progress
Fix big ledger peer query resultsmerged
Fixed various issuesmerged
Identify the correct ledger era for local state queriesmerged
node kernel cleanupmerged
Updated ouroboros-network versionmerged

IOSim​

PR / IssueStatus
export labelTChan and labelTChanIOin review

Network Team Update

· 4 min read
Marcin Szamotulski
Network Team Lead

Overview of sprint 114.​

Summary​

Leios​

The TxSubmission v2 demo was merged, providing an end-to-end demonstration of TxSubmission V2. A benchmark study of incremental vs. non-incremental CBOR block decoding shows that decoding blocks incrementally yields modest improvements for standard Praos blocks, and larger gains for multi-megabyte blocks — directly relevant to Leios where block sizes may grow substantially. Cardano-base was bumped to include support for Leios voting. A simple TCP congestion-window model was added to the Leios Rust simulator (sim-rs), porting the model from the Haskell simulator; mini-protocol multiplexing remains a gap to be addressed. An alternative TxSubmission V2 design without a central decision thread is under review, superseding the earlier exploration.

Ouroboros-Network​

bracketFetchClient and bracketKeepAlive were decoupled by splitting FetchClientRegistry into KeepAliveRegistry and FetchClientRegistry — a prerequisite for DMQ-Node integration. Contra-tracer was upgraded to 0.2.1, unblocking the removal of iohk-monitoring-framework from cardano-node 11.1. The peer-selection governance target was renamed from selectEnvTargets to selectGovTargets. Various tracing and API improvements were merged as part of ongoing DMQ-Node integration work. A new protocol version NodeToClientV_24 for the ValidateTx local-state-query is under review.

DMQ-Node​

Version 0.5.0.0 was released. The announcyness metric for peer selection was merged: it scores peers by how often they are first to announce a valid signature, with scores kept for one hour matching the churn rate. SigId validation was improved: CBOR encoding was corrected to use Hash Blake2b_256 for the sigId field, and SigExpired failures are now restricted to the ZeroSetSnapshot case. An ouroboros-network integration update is in review. Work on connecting the DMQ kernel to cardano-node continues, blocked on pr#58.

IO-Sim and TypedProtocols​

io-sim and typed-protocols repositories were moved to IntersectMBO organisation on GitHub.

Leios​

PR / IssueStatus
TxSubmission V2 without a decision threadin review
Block decoder: incremental vs. non-incremental benchmarkin review
Bump cardano-base for Leios votingmerged
TxSubmission v2 demomerged
simple TCP model for sim-rsmerged

Ouroboros-Network​

PR / IssueStatusNotes
Add NodeToClientV_24 for ValidateTx queryin review
cardano-diffusion: label ledger peer usagein reviewcontribution by dancewithheart
Various changesmerged
Renamed selectEnvTargets to selectGovTargetsmergedcontribution by dancewithheart
Upgrade to contra-tracer 0.2.1mergedcontribution by f-f
Decouple bracketFetchClient and bracketKeepAlivemerged
cardano ping implemented with ouroboros-networkblocked

DMQ-Node​

PR / IssueStatus
node kernel cleanupin progress
Updated ouroboros-network versionin review
dmq-node-0.5.0.0 pre-releasemerged
SigId validationmerged
Drop support for x86_64-darwinmerged
announcyness metric for peer selectionmerged

IOSim​

PR / IssueStatus
Repo moved to IntersectMBOmerged

Typed Protocols​

PR / IssueStatus
Repo moved to IntersectMBOmerged

Network Team Update

· 6 min read
Marcin Szamotulski
Network Team Lead

Overview of sprints 110, 111, 112 and 113.​

Summary​

Leios​

The mux egress prioritisation issue was resolved, delivering static priority-based scheduling for mini-protocols. Work on weighted fair queueing with token bucket support was concluded: it allows bursty protocols to send multiple SDUs back-to-back without starving other mini-protocols. However, right now we don't have evidence that the additional complexity is really needed to achive better performance. A TxSubmission V2 demo is being merged, and an alternative design without a central decision thread is being explored.

Ouroboros-Network​

Tx-submission v2 now returns results from submitTxToMempool, a prerequisite for DMQ-Node integration. The long-standing ChurnMode refactoring was merged, together with a property-based tx integrity test for cardano-diffusion. Nodes now warn about misconfigured local socket permissions (an issue identified by Claude LLM). A fix for initial syncing targets is under review, which will reduce load on bootstrap relays during node startup by setting lower active-peer targets before the first churn cycle.

DMQ-Node​

Versions 0.3.0.0 and 0.4.0.0 were released. The 0.4.0.0 release includes trace-dispatcher integration, Prometheus metrics, and CLI improvements. Work is ongoing on an announciness metric for peer selection — scoring peers by how often they are first to announce a valid signature — and on connecting the DMQ kernel to cardano-node.

Leios​

PR / IssueStatusSprint
TxSubmissionV2 demoin review112
tx-submission v2: undecisionin progress112
network-mux: weighted fair queueing and token bucket for burst supportin progress111
Mux: single peer performance for Leiosin progress110
Mux egress prioritisationresolved110

Ouroboros-Network​

PR / IssueStatusSprintNotes
tx-submission v2: return results in submitTxToMempoolmerged113
drop support for x86_64-darwinmerged113contribution by dermetfan
Local socket access right warningsmerged113
connection-manager: added a commentmerged113
Clarify LedgerPeersConsensusInterfacein review113
Fix initial syncing targetsin review113
Various small changesin review113
cardano-diffusion: tx integrity testmerged112
ChurnMode refactoredmerged112
Code refactoring (burst engine)merged112related to WFQ
Removed AcquireConnectionErrormerged111
Updated documentationmerged111
new tracing: fixed Stateful.TraceRecvMsgmerged110
LocalRootPeers - ToJSON instancemerged110
Fixed peerselection test failuremerged110
cardano ping implemented with ouroboros-networkblocked110

DMQ-Node​

PR / IssueStatusSprint
announciness metric for peer selectionin progress113
node kernel cleanupin progress113
Prometheus prefixmerged111
Prometheus counters prefixmerged111
CLI improvementsmerged111
dmq-node-0.4.0.0merged111
trace-dispatcher integrationmerged110
dmq-node-0.3.0.0 releasemerged110

IOSim​

PR / IssueStatusSprint
Remove withLiftSTmerged112
io-classes-1.10.1.0merged112
Add IOSimPOR QuickCheck monadic combinatorsmerged110

Typed Protocols​

PR / IssueStatusSprint
support io-classes-1.10merged112

Contra Tracer​

PR / IssueStatusSprint
Contra.Tracer extra APIsmerged110

Network Team Update

· 4 min read
Marcin Szamotulski
Network Team Lead

Overview of sprints: 108 and 109.​

Cardano Node 10.7.0​

We relased

  • ouroboros-network-1.0.0.0 (later refined with ouroboros-network-1.1.0.0
  • cardano-diffusion-1.1.0.0 which are integrated with the ongoing cardano-node-10.7 release.

See release board for all PRs included in these releases.

Leios​

PR / IssueStatus
Mux egress prioritisationin progress
Performance improvement for tx-submission v2in progress
TxSubmissionV2 demoin progress
Expand network sectionin review

Ouroboros-Network​

PR / IssueStatusNotes
tx-submission robustness and testing enhancementsmerged
RNG handling in SRV lookups for public root peersclosedcontribution by Saviour Uzoukwu
cardano ping implemented with ouroboros-networkblocked
mux: refactored ReadBuffer & socket API changesmerged
ledger-peers: introduced SignLedgerPeersKindmerged
cardano-ping: output valid JSON when no pongs are receivedmerged
Add {To,From}JSON instances for TxSubmissionLogicVersionmerged
[Cardano Topology: module exports][pr#5339]merged
Haddock improvementsmerged

DMQ-Node​

PR / IssueStatusnotes
SigSubmission v2merged
Integration with cardano-tracerin progress
[Churn test][#5303]merged
Updated dependencies of dmq-nodemerged
Improved documentationmerged
Fixed number of unacknowledged sigIds on the outbound sidemerged
[Added pattern synonyms for EraIndex (CardanoEras c)][pr#1919]mergedouroboros-consensus change needed for Ledger peers
Ledger peersmerged
[dmq-node-0.3.0.0 pre-release][pr#37]merged
Haddocks, docs & release scriptsmerged

IOSim​

PR / IssueStatus
Added flushEventLog to MonadEventlogmerged
io-sim improvementsmerged
PR review commentsmerged
ghc-9.14 supportmerged
io-sim: io-classes constraintmerged