▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/BandwidthOptimizer
BandwidthOptimizer

BandwidthOptimizer

Save your MC bandwidth with big quantities.

Оцените первым
7.7K
12

BandwidthOptimizer

BandwidthOptimizer is a client-and-server network bandwidth optimization mod for heavily modded Minecraft servers. It reduces repeated and compressible PLAY traffic while trying to preserve the original Minecraft packet stream after decoding.

It is designed for modpacks and public servers where login sync, custom payloads, machine networks, storage systems, and repeated chunk visits can generate large amounts of network traffic. It is not an FPS optimizer, and it should not be treated as a replacement for normal server, proxy, or network tuning.

!BandwidthOptimizer preview

Support

  • Discord: https://discord.gg/qdMbM9Rq6B
  • GitHub: https://github.com/duckgun13476/BandwidthOptimizer

Development Status

BandwidthOptimizer is still under active development. Bugs and mod compatibility issues are still possible, especially in large modpacks, proxy networks, and servers with heavy custom payload traffic.

The mod is designed to optimize network packets, not to modify world data or save files. When a packet, boundary, or mod interaction looks unsafe, BandwidthOptimizer tries to fall back to direct or bypass behavior instead of forcing optimization.

If you encounter an issue, please report it with client logs, server logs, proxy logs if applicable, and BandwidthOptimizer report files. Compatibility reports, suggestions, and contributions are welcome.

What It Does

  • Wraps already encoded Minecraft packets into reversible transport frames.
  • Compresses suitable packet payloads with streaming Zstd.
  • Uses synchronized literal/template mapping for repeated packet structures.
  • Batches safe small packet groups while respecting protocol and flush boundaries.
  • Reuses chunk data through full, ref, and patch transport decisions.
  • Keeps reusable chunk cache data across reconnects and compatible proxy server switches.
  • Bypasses sensitive packets, protocol transitions, and unsafe timing boundaries instead of forcing every packet through the same optimization path.
  • Provides HUD, server stats, source reports, bypass reports, and decoder dump files for debugging and reproducible measurements.

How It Works

BandwidthOptimizer works below normal gameplay logic. On the sending side, it observes packets after Minecraft or the loader has encoded a complete packet into bytes. The transport layer may then wrap, batch, compress, or bypass that encoded packet.

On the receiving side, the transport frame is unwrapped back into the original encoded packet bytes before normal packet handling continues. The design goal is packet-stream equivalence: after restoration, the receiver should see the same packet types, packet contents, and relative order that it would have seen without BandwidthOptimizer.

LayerPurpose
Transparent transportCarries already encoded packet bytes without rewriting gameplay logic.
Streaming ZstdCompresses packet bodies that benefit from byte-level compression.
Literal/template mappingReduces repeated packet structures while keeping sender and receiver state synchronized.
Light batch pathUses cheaper batch encoding for sensitive flush paths where full template work is too expensive.
Chunk transportChooses full, ref, patch, or bypass for chunk-related traffic based on available cache state and safety checks.
Boundary controlForces flush, bypass, warmup, or reset around protocol transitions, login/config/play changes, proxy switches, and stale epochs.
ReportsRecords raw traffic, optimized traffic, bypass causes, packet ranks, and decoder failures for troubleshooting.

Measured Results

Bandwidth reduction depends on the modpack, player activity, proxy setup, and which packets dominate the traffic. The examples below are from BandwidthOptimizer report files collected during real heavily modded server testing. They are examples, not guaranteed results.

The main metric for this mod is the compression ratio of traffic that actually enters BandwidthOptimizer's transport path. Whole-server raw/actual totals are useful context, but they also include direct packets, compatibility bypasses, cache reuse, and traffic from mods that should not or cannot be compressed. For example, some mod traffic such as WATUT/YSM-style presence or model updates may be bypassed or may compress poorly, so it should not be mixed into the main transport-compression claim.

Live HUD snapshots:

EnvironmentClient optimized flowServer raw to actualServer optimized flowDirect flowPlayersSource
Create Delight Remake server 123.21 MB -> 3.93 MB (16.9%)305.35 GB -> 51.12 GB (16.7%)40.28 GB (13.2%)49.46 GB (16.2%)13HUD snapshot, v2.7.6.10.
Create Delight Remake server 224.51 MB -> 4.15 MB (16.9%)516.70 GB -> 83.24 GB (16.1%)57.57 GB (11.1%)57.01 GB (11.0%)15HUD snapshot, v2.7.6.10.

Source-report managed transport totals:

EnvironmentManaged transportWithout WATUT/YSM-like streamsNotes
Create-focused core server38976.09 MiB -> 9455.03 MiB (24.3%)34580.44 MiB -> 5236.56 MiB (15.1%)Real mixed traffic with large already-compressed/poorly-compressible sources.
Create-focused mirror server1046.16 MiB -> 253.89 MiB (24.3%)902.82 MiB -> 113.55 MiB (12.6%)Smaller mixed sample; WATUT-like traffic is visible.
Create-focused test server1174.31 MiB -> 112.24 MiB (9.6%)same sampleNo WATUT/YSM exception in this TopN sample.
Create Delight7865.72 MiB -> 1622.43 MiB (20.6%)7774.54 MiB -> 1539.90 MiB (19.8%)Public modpack source-report snapshot.
Create Delight secondary snapshot4567.66 MiB -> 603.15 MiB (13.2%)not separatedEarlier report snapshot.

High-impact traffic-source examples:

SourceEnvironmentRaw observedActual transmittedActual/raw ratio
ClientboundLevelChunkWithLightPacketCreate-focused core server9062.88 MiB481.85 MiB5.3%
ClientboundLevelChunkWithLightPacketCreate-focused test server713.65 MiB16.84 MiB2.4%
ClientboundTabListPacketCreate-focused core server6354.97 MiB655.45 MiB10.3%
lightmanscurrency:networkCreate-focused core server8206.80 MiB593.69 MiB7.2%
create:deployer block entity dataCreate Delight510.41 MiB71.61 MiB14.0%

Low-benefit traffic-source examples:

SourceEnvironmentRaw observedActual transmittedActual/raw ratioPath
watut:mainCreate-focused core server4157.94 MiB3974.80 MiB95.6%BATCH_DIRECT_FALLBACK
yes_steve_model:2_6_0Create-focused core server514.63 MiB510.50 MiB99.2%BATCH_TRANSPORT_SHARE
watut:mainCreate-focused mirror server146.07 MiB143.07 MiB97.9%BATCH_TRANSPORT_SHARE
watut:mainCreate Delight91.18 MiB82.53 MiB90.5%BATCH_TRANSPORT_SHARE

These streams are already compressed, encrypted, or near-random enough that a second compression layer has little room to help. They are still shown here because they explain why mixed-server totals can look worse than the high-impact packet families above.

To reproduce comparable measurements on your own server:

  1. Install the same BandwidthOptimizer version on the server and clients.
  2. Run the same activity pattern for a fixed period, such as login bursts, repeated chunk travel, machine-heavy areas, or normal online play.
  3. Prefer the HUD optimized flow line, or filter source reports to rows whose path enters transport, such as BATCH_TRANSPORT_*, SINGLE_TRANSPORT, or chunk transport rows.
  4. Keep direct/bypass rows separate. Do not count bandwidthoptimizer:transport carrier packets as new raw source traffic.
  5. Include the modpack, loader, Minecraft version, player count, and test duration when sharing results.

Important report locations:

bandwidthoptimizer-native/transport-source-report/latest-source-report.md
bandwidthoptimizer-native/transport-bypass-report/latest-bypass-report.md
bandwidthoptimizer-native/decoder-exception-dump/

Mechanomania was also checked with BandwidthOptimizer diagnostic output in the current test set. The available snapshot contained bypass and packet-rank reports but not a source raw/actual summary, so it is listed as a tested environment rather than used as a compression-ratio claim.

Tested Modpack Environments

The author has tested BandwidthOptimizer in several heavily modded environments, including:

  • Create Delight
  • Brass Concerto
  • Aeronautics
  • Mechanomania

This means these environments have been used for compatibility testing. It does not guarantee that every possible mod combination, proxy topology, or server configuration is covered.

Supported Versions

Choose the build that matches both your Minecraft version and loader.

LoaderMinecraftNotes
Forge1.19.2Forge 43.x target.
Forge1.20.1Forge 47.x target.
Fabric / Quilt1.20.1Requires Fabric API. Published for Fabric and Quilt loaders.
Fabric / Quilt1.21.1Requires Fabric API. Published for Fabric and Quilt loaders.
NeoForge1.21.1NeoForge 21.x target.

Dependencies

  • Minecraft and the matching mod loader for the downloaded build.
  • Fabric API for Fabric and Quilt builds.
  • The same BandwidthOptimizer version on both the server and every client.

Forge and NeoForge builds use loader config files generated under config/. Fabric and Quilt builds include matching runtime code and still require Fabric API.

Installation

  1. Download the BandwidthOptimizer jar for your loader and Minecraft version.
  2. Put the jar into the server mods folder.
  3. Put the same BandwidthOptimizer version into each client mods folder.
  4. Install Fabric API when using the Fabric or Quilt build.
  5. Restart the server and clients.

If client and server versions do not match, the transport channel may be disabled or fail to negotiate correctly.

Configuration

Main loader-generated config files:

config/bandwidthoptimizer-common.toml
config/bandwidthoptimizer-client.toml

Important areas:

AreaPurpose
PLAY batch optionsControls reference deduplication, SHA-256 dictionary, template dictionary, Zstd, streaming Zstd, and async batch encoding.
Template dictionary limitsCaps packet size, entry count, payload bytes, diff runs, and changed bytes for mapping work.
Chunk cache budgetControls client-side chunk cache memory and persistent backup behavior.
Debug analysisEnables heavier manual analysis commands such as transport reports and packet ranks.
Decoder dumpWrites detailed packet dumps when decoder failures are detected.
Runtime propertiesAdvanced overrides such as bandwidthoptimizer.transport.batchWindowMillis, bandwidthoptimizer.transport.mappingEnabled, and bandwidthoptimizer.transport.zstdEnabled.

Most servers should start with the default configuration and only change these options while comparing report output before and after the change.

Commands

CommandDescription
/bandwidthoptimizerShows available BandwidthOptimizer commands.
/bandwidthoptimizer hudToggles the client HUD.
/bandwidthoptimizer statsShows server bandwidth totals.
/bandwidthoptimizer stats totalShows persisted total server bandwidth stats.
/bandwidthoptimizer stats players [limit]Shows top player/channel bandwidth stats.
/bandwidthoptimizer stats resetResets persisted server bandwidth stats.
/bandwidthoptimizer test transportreport run [ticks]Starts a short transport compression report. Requires debug analysis.
/bandwidthoptimizer test transportreport statusShows transport report capture status.
/bandwidthoptimizer test packetrank run [ticks]Starts a packet-rank capture. Requires debug analysis.
/bandwidthoptimizer test packetrank statusShows packet-rank capture status.

Compatibility Scope

BandwidthOptimizer intentionally bypasses or flushes around packets and states where optimization could change observable timing or ordering. This includes protocol transitions, strong timing boundaries, stale transport epochs, unsafe serverbound carrier sizes, selected compatibility cases, and packets where direct delivery is safer than wrapping.

Velocity proxy setups are supported and tested, but proxy switching and reconnect behavior can expose timing-sensitive bugs in any transport layer. When reporting a proxy issue, include client logs, backend server logs, proxy logs, and the generated BandwidthOptimizer report files.

Limitations

  • Both the client and server must install the mod.
  • Results vary by modpack, online count, traffic source, and activity pattern.
  • Already-compressed, encrypted, or near-random streams such as WATUT/YSM-style presence or model data may have little or no additional compression benefit.
  • Some packets are deliberately sent directly because optimizing them would cost more than it saves or could risk compatibility.
  • Large login or reconnect bursts can still create network pressure even when compressed.
  • BandwidthOptimizer reduces network traffic; it does not directly optimize FPS, TPS, world generation, database latency, or proxy routing.

Reporting Issues

When reporting a problem, please include:

  • Minecraft version, loader, and BandwidthOptimizer version.
  • Whether a proxy such as Velocity is used.
  • Client logs and server logs around the issue time.
  • Proxy logs when the problem involves server switching or reconnects.
  • latest-source-report.md and latest-bypass-report.md if available.
  • Decoder dump files if a packet decoder error was reported.
  • The modpack name or a short list of major networking-heavy mods.

Acknowledgments

Thanks to the server owners, modpack maintainers, and players who provided logs, packet dumps, compatibility reports, and real traffic samples from heavily modded servers. Those reports are what make the optimization and compatibility rules practical instead of theoretical.

License

This project is licensed under GNU LGPL 2.1-only.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:4 дня назад
Главная