LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

netselect

determines the fastest network servers from a list of hosts by measuring

TLDR

Pick the host with the lowest measured latency
$ sudo netselect [host1] [host2] [host3]
copy
Return the N fastest hosts
$ sudo netselect -s [N] [host1] [host2] [host3]
copy
Increase verbosity for DNS and probe stats
$ sudo netselect -vv [host1] [host2]
copy
Cap probe TTL
$ sudo netselect -m [10] [host1] [host2]
copy
Show built-in usage (no hosts)
$ netselect
copy

SYNOPSIS

netselect [options] hosts...

DESCRIPTION

netselect determines the fastest network servers from a list of hosts by measuring packet round-trip time and routing hops. It sends probe packets and ranks hosts based on a combined score of latency and hop count.The output score is calculated as latency multiplied by (number of hops)^3, favoring nearby servers with low latency. Lower scores indicate better servers.Commonly used to select the fastest Debian mirror or DNS server. The companion tool netselect-apt automates mirror selection for Debian systems.

PARAMETERS

-v

Verbose mode; show resolution and stats (use -vv for more detail)
-m _ttl_
Maximum TTL (time to live) for probe packets
-s _n_
Print the n fastest servers instead of just the fastest
-t _n_
Number of packets to send per host
-I
Use ICMP echo instead of UDP

INSTALL

sudo apt install netselect
copy
nix profile install nixpkgs#netselect
copy

CAVEATS

Requires root privileges to send raw packets. Results may vary based on network conditions at test time. ICMP packets may be blocked by some firewalls, affecting results. The scoring algorithm favors fewer hops, which isn't always optimal.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid