# lucic71/dcn-rdma-proj architecture

> Architecture diagram of the GitHub repository lucic71/dcn-rdma-proj, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lucic71/dcn-rdma-proj
- Repository: https://github.com/lucic71/dcn-rdma-proj

## Overview

This project implements MPI_Alltoall-style data exchange over RDMA, with separate Bruck and pairwise algorithms. A rank starts an algorithm process, which exchanges per-peer data through FIFOs; RDMA processes bridge those FIFOs to remote peers. The README describes start.sh as the launcher that creates FIFOs, assigns ports, and starts both process types, but its source was not provided, so launcher connections are documented rather than source-verified. The graph preserves both algorithm branches and the RDMA bridge; details of its omitted protocol sections are necessarily limited.

Main entry points: [`start.sh`](https://github.com/lucic71/dcn-rdma-proj/blob/main/start.sh) (Runtime launcher), [`rdma.cc`](https://github.com/lucic71/dcn-rdma-proj/blob/main/rdma.cc) (RDMA bridge), [`pairwise.cc`](https://github.com/lucic71/dcn-rdma-proj/blob/main/pairwise.cc) (Pairwise exchange), [`bruck.cc`](https://github.com/lucic71/dcn-rdma-proj/blob/main/bruck.cc) (Bruck exchange)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_algorithms["Alltoall algorithms"]
  node_pairwise["Pairwise exchange<br/>[pairwise.cc]"]
  node_bruck["Bruck exchange<br/>[bruck.cc]"]
end

subgraph group_transport["RDMA transport"]
  node_rdma["RDMA bridge<br/>[rdma.cc]"]
end

subgraph group_runtime["Process runtime"]
  node_launcher["Runtime launcher<br/>[start.sh]"]
  node_fifos["Rank FIFOs"]
end

node_user(("VM operator"))
node_remote(("Remote RDMA peer"))

node_user -->|"starts per VM"| node_launcher
node_launcher -->|"creates FIFOs"| node_fifos
node_launcher -.->|"starts algorithm"| node_pairwise
node_launcher -.->|"starts algorithm"| node_bruck
node_launcher -.->|"starts processes"| node_rdma
node_pairwise -->|"reads and writes"| node_fifos
node_bruck -->|"reads and writes"| node_fifos
node_rdma -->|"bridges data"| node_fifos
node_rdma -->|"sends RDMA"| node_remote
node_remote -->|"sends RDMA"| node_rdma

click node_launcher "https://github.com/lucic71/dcn-rdma-proj/blob/main/start.sh"
click node_pairwise "https://github.com/lucic71/dcn-rdma-proj/blob/main/pairwise.cc"
click node_bruck "https://github.com/lucic71/dcn-rdma-proj/blob/main/bruck.cc"
click node_rdma "https://github.com/lucic71/dcn-rdma-proj/blob/main/rdma.cc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pairwise,node_bruck toneBlue
class node_rdma toneAmber
class node_launcher,node_fifos toneMint
class node_user,node_remote toneIndigo
```

## Components

### Alltoall algorithms

- [Pairwise exchange](https://github.com/lucic71/dcn-rdma-proj/blob/main/pairwise.cc): `pairwise.cc`
- [Bruck exchange](https://github.com/lucic71/dcn-rdma-proj/blob/main/bruck.cc): `bruck.cc`

### RDMA transport

- [RDMA bridge](https://github.com/lucic71/dcn-rdma-proj/blob/main/rdma.cc): `rdma.cc`

### Process runtime

- [Runtime launcher](https://github.com/lucic71/dcn-rdma-proj/blob/main/start.sh): `start.sh`
- **Rank FIFOs**

### Other components

- **VM operator**
- **Remote RDMA peer**

## Connections

- VM operator → Runtime launcher: starts per VM (evidence: `README.md`)
- Runtime launcher → Rank FIFOs: creates FIFOs (evidence: `README.md`)
- Runtime launcher → Pairwise exchange: starts algorithm (evidence: `README.md`)
- Runtime launcher → Bruck exchange: starts algorithm (evidence: `README.md`)
- Runtime launcher → RDMA bridge: starts processes (evidence: `README.md`)
- Pairwise exchange → Rank FIFOs: reads and writes (evidence: `pairwise.cc`)
- Bruck exchange → Rank FIFOs: reads and writes (evidence: `bruck.cc`)
- RDMA bridge → Rank FIFOs: bridges data (evidence: `README.md`)
- RDMA bridge → Remote RDMA peer: sends RDMA (evidence: `README.md`)
- Remote RDMA peer → RDMA bridge: sends RDMA (evidence: `README.md`)
