#NetworkStack • Nov 12, 2026 • By Dev_Keflavik (Edge Network Engineer)

Tuning Netty, AVX2 libdeflate & Subsea TCP BBR on Our Keflavík Velocity Edge

1. High-Frequency BlockEntity Packet Bursts

In modded realms like CryoTech 1.20.4, dense cable networks and multiblock machines generate 700–1,000 state-sync packets per second per client, each prefixed with a 1–3 byte VarInt frame header. Poorly tuned proxies waste significant CPU cycles allocating short-lived heap ByteBuf slices.

2. Eliminating Double Compression with Native libdeflate

A classic mistake behind proxy clusters is leaving network-compression-threshold=256 active on backend servers, forcing Velocity to decompress and re-compress every chunk packet. Across Minecraftix ICE, internal wire links over 25GbE VLANs run uncompressed (compression-threshold = -1), while edge compression executes once on Velocity using native C libdeflate with AVX2 intrinsics.

Benchmark Insight: raising the edge threshold to compression-threshold = 512 skips compressing tiny 26-byte PlayerPosition packets, cutting Netty I/O CPU load by 19%.

3. Subsea Fiber Peering & Production Velocity Settings

Because traffic out of Iceland traverses the FARICE-1, DANICE, and IRIS subsea cables to London, Amsterdam, Copenhagen, and Dublin, we pair Linux tcp_bbr congestion pacing with expanded socket buffers:

velocity.toml (Edge Node IS-KEF-01 • ice.minecraftix.pro)
[advanced]
compression-threshold = 512
compression-level = 4
login-ratelimit = 1200
connection-timeout = 4000
read-timeout = 20000
haproxy-protocol = false
tcp-fast-open = true

Combined with net.ipv4.tcp_congestion_control = bbr and net.core.default_qdisc = fq, players across Scandinavia, Western Europe, and US-East experience jitter-free chunk streaming even over lossy Wi-Fi links.


Related Engineering Notes: