You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kyle MacMillan edited this page Jun 12, 2022
·
4 revisions
Netrics comes with a "standard library" of modules to facilitate basic network measurement.
std-ping
std-ping sends ICMP pings to a set of destinations and returns the min, avg, max, and standard deviation of the RTTs, as well as any packet loss. Uses the built-in ping utility from the iputils package.
Parameters
targets: A list of hostnames to be pinged. The default is ['google.com'].
interval: Number of seconds between each ping. The default is 0.25.
count: Number of packets sent. The default is 10.
timeout: Number of seconds to wait for a response. The default is 5.
verbose: Includes result of successfully pings in stderr when set to True.