Skip to main content

A web-based tool for simulating network quality

Project description

NetHang Logo

Tests

NetHang is a web-based tool designed to simulate network quality, focusing on the diversity of last-mile network conditions. For modern internet applications and services with high real-time requirements, NetHang offers a stable, reentrant, customizable, and easily extensible network quality simulation system, helping to achieve low-latency and high-quality internet services.

Add Path

Unlike traditional network impairment tools that target backbone network quality between servers and switches, NetHang is optimized for:

  • Simulating network quality from user equipment (UE) to servers, typically traversing:
    • UE <--> Lan (Wi-Fi or Wired) <--> Routers <--> ISP edge nodes <--> APP servers
    • UE <--> Cellular <--> ISP edge nodes <--> APP servers
    • UE <--> Air interface <--> Satellite <--> APP servers
Start Simulation
  • The current network model is built and simplified based on existing network quality data modeling, while also supporting users to easily customize the network models they need for testing in YAML format.

  • NetHang clearly displays the differences in data traffic before and after simulation, as well as the state of the simulation conditions.

Manipulate Charts

Features

  • Traffic rate limiting and shaping
  • Network latency and latency variation simulation
  • Packet loss simulation
  • Support for both uplink and downlink traffic control
  • Configurable traffic rules and models
  • Real-time traffic statistics display

Requirements

  • Python 3.8 or higher
  • Linux system with tc and iptables support
  • Root privileges for traffic control operations

Installation

From PyPI (Recommended)

You can install NetHang from PyPI using the following command:

pip install nethang

From Source (For Developers)

You can also install NetHang from source by cloning the repository and running the following command:

pip install .

License

MIT License

Copyright (c) 2025 NetHang Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Please make sure to update tests as appropriate and adhere to the existing coding style.

Authors

NetHang Contributors

Acknowledgments

  • Thanks to all contributors who have helped with the project
  • Inspired by various network traffic control tools and utilities

APP ICON

App Icon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nethang-0.1.4.tar.gz (326.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nethang-0.1.4-py3-none-any.whl (325.9 kB view details)

Uploaded Python 3

File details

Details for the file nethang-0.1.4.tar.gz.

File metadata

  • Download URL: nethang-0.1.4.tar.gz
  • Upload date:
  • Size: 326.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for nethang-0.1.4.tar.gz
Algorithm Hash digest
SHA256 15a5b67d12d6577cbd701d31ce278aec467cde64f9a7ce47eac6ee663b67002c
MD5 02f99ac97857c1eb84611e2998e76965
BLAKE2b-256 dd7cd24268c0c8ead13d9cdc222ef1377634ff59e7ecdb9a17c51ff3c3ccef67

See more details on using hashes here.

File details

Details for the file nethang-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: nethang-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 325.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for nethang-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 376093aee082937abd878bd2d041222a360cf6d84675bde611c4b96f1f7f80ce
MD5 53cd1e2bea46b15d8b03e946d5539ae4
BLAKE2b-256 d3e4a7328c18d0e538cc08ebc1178db6131acda292a2f2cb15f0dd3f3b159498

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page