Skip to content

Commit 9c46cd4

Browse files
fix: optimize ib size for 3 TCP round trips (#218)
* fix: optimize ib size for 3 TCP round trips * fix(sim-hs): test for default ibBodyAvgSizeBytes
1 parent 6b07bcf commit 9c46cd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

data/simulation/config.default.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ ib-shards: 1
8282
# would instead more than double the total to 668.
8383
# And even 828 including Op Cert.
8484
ib-head-size-bytes: 304
85-
# 100kB, using praos max size as ballpark estimate.
86-
ib-body-avg-size-bytes: 102400
85+
# 98KB to optimize for 3 TCP round trips
86+
ib-body-avg-size-bytes: 98304
8787
ib-body-max-size-bytes: 327680
8888
# Here we also use praos blocks as ballpark estimate.
8989
# Sec 2.3 Forging, of the benchmark cluster report, lists

simulation/src/LeiosProtocol/Config.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ instance Default Config where
150150
, ibBodyValidationCpuTimeMsConstant = 50.0
151151
, ibBodyValidationCpuTimeMsPerByte = 0.0005
152152
, ibBodyMaxSizeBytes = 327680
153-
, ibBodyAvgSizeBytes = 102400
153+
, ibBodyAvgSizeBytes = 98304
154154
, ibDiffusionStrategy = FreshestFirst
155155
, ibDiffusionMaxWindowSize = 100
156156
, ibDiffusionMaxHeadersToRequest = 100

0 commit comments

Comments
 (0)