Skip to content

Commit 12e20f2

Browse files
authored
Created a pseudo-mainnet (#384)
* Synthesized nodes and edges for pseudo-mainnet * Data file with approximate geographic bounding boxes for countries * Created pseudo-mainnet edges and some latencies * Finished construction of first cut of pseudo-mainnet * JSON output of the network topology * Completed QA on pseudo-mainnet generation scripts * Input data files for generating pseudo-mainnet * Topology checks for pseudo-mainnet * Protected data input data files * Added read-me file * Updated logbook
1 parent 6e7e493 commit 12e20f2

16 files changed

+969887
-0
lines changed

Logbook.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Leios logbook
22

3+
## 2025-06-05
4+
5+
### Semi-realistic mainnet-scale topology
6+
7+
The aim of [the pseudo-mainnet topology](data/simulation/pseudo-mainnet/) is to have a Leios network that is generally representative of the Cardano mainnet:
8+
9+
- Realistic stake distribution
10+
- Realistic number of stake pools
11+
- Two relays for each block producer
12+
- Block producers only connected to their relays
13+
- 10,000 nodes total
14+
- Realistic latencies, generally consistent with the [RIPE Atlas](https://atlas.ripe.net/) `ping` dataset
15+
- Bandwidth consistent with the low end of what is generally available in cloud data centers
16+
- Node connectivity generally consistent with measurements by the [Cardano Foundation](https://cardanofoundation.org/)
17+
- Geographic distribution (countries and autonomous systems) consistent with measurements by the [Cardano Foundation](https://cardanofoundation.org/)
18+
19+
| Metric | Value |
20+
|--------|------:|
21+
| Total nodes | 10000 |
22+
| Block producers | 2657 |
23+
| Relay nodes | 7343 |
24+
| Total connections | 298756 |
25+
| Network diameter | 6 hops |
26+
| Average connections per node | 29.88 |
27+
| Clustering coefficient | 0.122 |
28+
| Average latency | 77.0ms ms |
29+
| Maximum latency | 636.8ms ms |
30+
| Stake-weighted latency | 0.0ms ms |
31+
| Bidirectional connections | 10800 |
32+
| Asymmetry ratio | 92.77% |
33+
34+
This is the first cut at a realistic mainnet-scale topology for Leios, but it likely contain imperfections because several compromises were made during its construction, so as to smooth out inconsistencies in source data. It does pass the topology checks, however, and approximately matches the marginal distributions of key network metrics.
35+
36+
- Network: [topology-v1.yaml](data/simulation/pseudo-mainnet/topology-v1.yaml)
37+
- Results of [topology checker](topology-checker/): [topology-v1.md](data/simulation/pseudo-mainnet/topology-v1.md)
38+
- Jupyter notebook used for creating the network: [topology-v1.ipynb](data/simulation/pseudo-mainnet/topology-v1.ipynb)
39+
340
## 2025-05-30
441

542
### Analysis of an overcollateralization scheme

analysis/sims/kernels.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
ggpattern
1717
ggplot2
1818
ggExtra
19+
igraph
1920
lubridate
2021
mongolite
2122
RPostgres
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Topology for a Cardano mainnet analog for Leios simulations
2+
3+
The aim of the pseudo-mainnet topology is to have a Leios network that is generally representative of the Cardano mainnet:
4+
5+
- Realistic stake distribution
6+
- Realistic number of stake pools
7+
- Two relays for each block producer
8+
- Block producers only connected to their relays
9+
- 10,000 nodes total
10+
- Realistic latencies, generally consistent with the [RIPE Atlas](https://atlas.ripe.net/) `ping` dataset
11+
- Bandwidth consistent with the low end of what is generally available in cloud data centers
12+
- Node connectivity generally consistent with measurements by the [Cardano Foundation](https://cardanofoundation.org/)
13+
- Geographic distribution (countries and autonomous systems) consistent with measurements by the [Cardano Foundation](https://cardanofoundation.org/)
14+
15+
16+
## Version 1
17+
18+
- Network: [topology-v1.yaml](topology-v1.yaml)
19+
- Results of [topology checker](../../../topology-checker): [topology-v1.md](topology-v1.md)
20+
- Jupyter notebook used for creating the network: [topology-v1.ipynb](topology-v1.ipynb)
21+
22+
> [!WARNING]
23+
>
24+
> This is the first cut at a realistic mainnet-scale topology for Leios, but it likely contain imperfections, but it likely contain imperfections because several compromises were made during its construction, so as to smooth out inconsistencies in source data. It does pass the topology checks, however, and approximately matches the marginal distributions of key network metrics.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3.16 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
175 KB
Binary file not shown.

0 commit comments

Comments
 (0)