Recommend a super awesome network quality detection script
2025.04.14
Project Introduction
NetQuality is a script that focuses on network quality detection and aims to provide users with comprehensive network performance analysis. It supports multiple operating systems, including mainstream Linux distributions such as Ubuntu, Debian, Fedora, macOS, and Apple systems, covering almost all common server and desktop environments. Whether it is detecting the quality of home broadband or evaluating the network performance of the server, NetQuality can do it.
This script integrates many practical functions, such as supporting IPv4 and IPv6 dual stack queries, providing BGP information, three-network delay testing, return route analysis, and domestic and foreign network speed testing. Its output results are not only detailed, but also use exquisite layout design, which is convenient for users to share screenshots or conduct data analysis.
Core functions
(1) Dual stack support and multi-module detection
The network quality assessment system fully supports IPv4/IPv6 dual protocol stack detection and integrates seven core functional modules:
BGP information: Based on the authoritative database of BGP.TOOLS and BGP.HE.NET, it accurately analyzes network topology and access information.
(4) Intelligent interactive design
Adaptive multi-terminal display layout to optimize data visualization
Support modular test process configuration to achieve free combination of test projects
Intelligent detection of operating environment and automatic deployment of dependent components to lower the threshold of use
The system provides multi-dimensional detection mode configuration:
Delay priority mode: quickly obtain network delay data, suitable for real-time diagnosis scenarios
Full path analysis mode: deeply track TCP large packet transmission paths, support provincial administrative district granular routing analysis
Traffic optimization mode: intelligently compress test data volume, adapt to traffic-restricted scenarios such as mobile networks
(3) Multi-language and data interface
Supports real-time switching between Chinese and English, provides structured JSON output interface, meets enterprise-level system integration and big data analysis needs
Triple-network delay: TCP packet delay detection for all operators covering 31 provinces in mainland China
Backhaul routing: Intelligently analyze network backhaul paths and visually present the actual topology of data transmission
Domestic speed test: Based on the Speedtest.net benchmark, it implements triple-network bandwidth performance evaluation for the entire mainland China (including the Hong Kong and Macau Greater Bay Area)
International interconnection: Build a global node network on five continents to provide a cross-border connection quality evaluation system
(2) Configurable test solutions
Usage
NetQuality is very easy to use and can be run through bash commands. Here are some common usage examples:
Advanced parameter support:
--tcp-window-size adjusts the detection packet size
--concurrent-threads controls the number of concurrent detections
--data-encryption enables AES-GCM transmission encryption
Default dual stack detection:
Detect IPv4 only:
Delay mode:
Full routing mode (specify Guangxi):
JSON output:
More parameters and options can be viewed on the GitHub page. The script also supports advanced features such as skipping dependency installation and displaying the full IP address.
Summary
NetQuality is a comprehensive and easy-to-use network quality detection tool that can benefit both general users and professionals.
Address
https://github.com/xykt/NetQuality