Skip to content

Commit ac41bf2

Browse files
committed
Update README.md to add idlelatency.sh script
1 parent cc7751c commit ac41bf2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and then restore the full set of packages after the upgrade.
1414

1515
* [betterspeedtest.sh](#betterspeedtestsh) & [netperfrunner.sh](#netperfrunnersh) & [networkhammer.sh](#networkhammersh) - scripts that measure the performance of your router or offer load to the network for testing.
1616

17+
* [idlelatency.sh](#idlelatencysh) - a script to measure the latency of an "idle line" without any additional traffic generation from the script.
18+
1719
* [tunnelbroker.sh](#tunnelbrokersh) - a script to set up a IPv6 6-in-4 tunnel to TunnelBroker.net.
1820

1921
These scripts can be saved in the `/usr/lib/OpenWrtScripts` directory.
@@ -162,6 +164,34 @@ On the right is a test using SQM: the latency goes up a little (less than 23 mse
162164
90pct: 5163.901 90pct: 56.061
163165
Max: 5334.262 Max: 69.333
164166

167+
---
168+
## [idlelatency.sh](https://github.com/richb-hanover/OpenWrtScripts/blob/master/idlelatency.sh)
169+
170+
The `idlelatency.sh` script summarizes ping times measured over a specified time interval. To invoke the script:
171+
172+
sh idlelatency.sh [ -4 | -6 ] [ -t duration ] [ -p host-to-ping ]
173+
174+
Options, if present are:
175+
176+
* -4 | -6: Enable ipv4 or ipv6 testing (default - ipv4)
177+
* -t | --time: Duration for how long each direction's test should run - (default - 60 seconds)
178+
* -p | --ping: Host to ping to measure latency (default - gstatic.com)
179+
180+
The output of the script looks like this:
181+
182+
```
183+
root@openwrt: sh idlelatency.sh
184+
2020-05-02 12:10:53 Testing idle line while pinging gstatic.com (60 seconds)
185+
............................................................
186+
Latency: (in msec, 60 pings, 0.00% packet loss)
187+
Min: 20.438
188+
10pct: 22.633
189+
Median: 36.907
190+
Avg: 35.143
191+
90pct: 45.994
192+
Max: 50.377
193+
```
194+
165195
---
166196
## [netperfrunner.sh](https://github.com/richb-hanover/OpenWrtScripts/blob/master/netperfrunner.sh)
167197

0 commit comments

Comments
 (0)