Skip to content

Add fluid flow wan simulation with backpressure#267

Open
sanjaychari wants to merge 40 commits into
codes-org:masterfrom
sanjaychari:digital-twin-sbir-develop-fluid-flow-wan-backpressure
Open

Add fluid flow wan simulation with backpressure#267
sanjaychari wants to merge 40 commits into
codes-org:masterfrom
sanjaychari:digital-twin-sbir-develop-fluid-flow-wan-backpressure

Conversation

@sanjaychari

Copy link
Copy Markdown
Collaborator

This PR introduces a fluid flow WAN simulation model into CODES which implements backpressure using Ethernet PAUSE frames and send rate limiting.

This reverts commit 9cd0c04
as the changes for it are in the digital-twin-sbir-develop-flow-control
branch.
Add flowlet and switch-training logs, queued-before/drop fields,
configurable switch schedulers, two-phase egress allocation, and
fragment coalescing for cleaner rollback and ML training targets.

Rename receive counters to received_fragments.
Buffer CSV rows in memory for both sequential and optimistic runs,
then merge logs after simulation completion to avoid event-path file I/O
and unsafe parallel appends.

Refactor common terminal and switch logging paths, add CSV file-open
checks, and keep optimistic logging rollback-safe through commit handlers.

Use MPI_COMM_CODES consistently, remove dead event/config fields, document
the large reverse-allocation event payload, clean up comments, and release
switch queue storage during finalization.
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sanjaychari

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant