diff options
| author | eunhhu <[email protected]> | 2026-09-29 09:27:49 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-29 09:27:49 +0100 |
| commit | f26f5fbd0a487a9a2848f819361b4e6fdd7a9cb1 (patch) | |
| tree | 624028b8a84299842bd3d3456be5962dd7dd420c /research/experiments/020-lossy-paths | |
| parent | a6c825b8613177e32e9bf43e2abd6ac820bc8321 (diff) | |
| download | pure-f26f5fbd0a487a9a2848f819361b4e6fdd7a9cb1.tar.gz pure-f26f5fbd0a487a9a2848f819361b4e6fdd7a9cb1.zip | |
Find how large a packet the path carries: 1,452 bytes once a probe is acknowledged
A link starts at 1,200 bytes; once an RTT is known it sends a PING padded
to 1,452 (DPLPMTUD, RFC 8899), alone and with the don't-fragment bit,
and uses that size once it is acknowledged. A probe lost is no
congestion; it is tried again a second on, three times, then ten minutes
on. GSO is asked for each burst (a control message), not the socket, so
a packet sent alone is never cut. CUBIC counts in the datagram.
On loopback packets fall by 19-27%; the CPU a record falls 13% at 1 KiB
and 7% at 16 KiB; in the simulator of a 50 Mbit/s path with 1% loss the
goodput rises from 6.1 to 7.0 Mbit/s (5%: 2.3 to 3.0).
Diffstat (limited to 'research/experiments/020-lossy-paths')
| -rw-r--r-- | research/experiments/020-lossy-paths/sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/research/experiments/020-lossy-paths/sim.c b/research/experiments/020-lossy-paths/sim.c index 00f93d6..699c9d4 100644 --- a/research/experiments/020-lossy-paths/sim.c +++ b/research/experiments/020-lossy-paths/sim.c @@ -19,7 +19,7 @@ typedef struct { uint64_t at; bool to_receiver; size_t size; - unsigned char bytes[PURE_LINK_DATAGRAM]; + unsigned char bytes[PURE_LINK_DATAGRAM_MOST]; } Packet; static uint64_t sim_seed; @@ -111,7 +111,7 @@ int main(int argc, char **argv) { unsigned char *bytes = calloc(1, size + 1); for (uint64_t seq = 1; seq <= records; ++seq) if (!pure_link_sender_queue(s, seq, bytes, size)) return 1; - unsigned char out[PURE_LINK_DATAGRAM]; + unsigned char out[PURE_LINK_DATAGRAM_MOST]; uint64_t sample_at = 0, window_sum = 0, rtt_sum = 0, samples = 0, window_least = UINT64_MAX; PureLinkDone told[64]; while (heard < records || s->stored < records) { |
