Skip to content

Commit

Permalink
feat(sims): add iroh on train sim
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Oct 1, 2024
1 parent b52df06 commit 4573c16
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions netsim/sims/lossy/iroh_train.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "iroh_train",
"cases": [
{
"name": "1_to_1",
"description": "",
"nodes": [
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh start --add data/1G.bin",
"type": "public",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket"
},
{
"name": "i_get",
"count": 1,
"cmd": "time ./bins/iroh blobs get --start %s --out STDOUT > /dev/null",
"type": "public",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1gb",
"link": {
"loss": 2,
"latency": 5000,
"bw": 1000
}
}
]
},
{
"name": "1_to_3",
"description": "",
"nodes": [
{
"name": "i_srv",
"count": 1,
"cmd": "./bins/iroh start --add data/1G.bin",
"type": "public",
"wait": 10,
"connect": {
"strategy": "none"
},
"param_parser": "iroh_ticket"
},
{
"name": "i_get",
"count": 3,
"cmd": "time ./bins/iroh blobs get --start %s --out STDOUT > /dev/null",
"type": "public",
"connect": {
"strategy": "params",
"node": "i_srv"
},
"process": "short",
"parser": "iroh_1gb",
"link": {
"loss": 2,
"latency": 5000,
"bw": 1000
}
}
]
}
]
}

0 comments on commit 4573c16

Please sign in to comment.