Not Enough Bandwidth

NEB uses various methods to save network traffic during Minecraft gameplay.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Not Enough Bandwidth
Скачать Not Enough Bandwidth1.21.1 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

NEB uses various methods to save network traffic during Minecraft gameplay.

  • Тип: мод
  • Загрузчик: neoforge
  • Версии Minecraft: 1.21.1 – 26.3
  • Скачиваний на Modrinth: 238 372

Подробно

NEB uses various methods to save as much network traffic as possible during Minecraft gameplay, while remaining transparent to both mods and players.

In the ZZZZ Dataset from TeaCon Jiachen, compared to raw uncompressed data, NEB can theoretically reduce the server's outbound traffic to 7.6% of its original size, with an actual measured value of approximately 13.8%.

In tests conducted in a Vanilla environment, the server outbound traffic was reduced to 18% of its original size. Theoretically, as the number of installed mods increases, the content transmitted over the network becomes larger and more complex, leading to better compression performance.

Press Alt+N in-game to easily view the network traffic status.

Optimize CustomPacketPayload encoding and decoding by replacing the packet header Identifier (Packet Type) with a compact index. This reduces the mod network packet header overhead to a fixed 3-4 bytes, instead of the length of the string corresponding to the network packet type.

> ### Fixed 8 bits header > > ┌------------- 1 byte (8 bits) ---------------┐ > │ function flags │ > ├---┬---┬-------------------------------------┤ > │ i │ t │ reserved (6 bits) │ > └---┴---┴-------------------------------------┘ > > - i = indexed (1 bit) > - t = tightindexed (1 bit, only valid if i=1) > - reserved = 6 bits (for future use) > > ### Indexed packet type > - If i=0 (not indexed): > > ┌---------------- N bytes ---------------- > │ Identifier (packet type) in UTF-8 > └----------------------------------------- > > - If i=1 and t=0 (indexed, NOT tight): > > ┌-------- 1 byte ---------┬-------- 1 byte --------┬-------- 1 byte --------┐ > ┌------------- 12 bits ---------------┬-------------- 12 bits --------------┐ > │ namespace-id (capacity 4096) │ path-id (capacity 4096) │ > └-------------------------------------┴-------------------------------------┘ > > - If i=1 and t=1 (indexed, tight): > > ┌--------- 1 byte ----------┬--------- 1 byte ---------┐ > ┌--------- 8 bits ----------┬--------- 8 bits ---------┐ > │namespace-id (capacity 256)│ path-id (capacity 256) │ > └---------------------------┴--------------------------┘ > > Then packet data.

It occupies 3 bytes when the network packet namespace and its corresponding path are fewer than 256, and 4 bytes when greater than 256. This supports up to 4096 mods, with 4096 channels per mod.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также