texas2step 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- texas2step-2.0.0/.gitignore +14 -0
- texas2step-2.0.0/LICENSE.md +204 -0
- texas2step-2.0.0/PKG-INFO +184 -0
- texas2step-2.0.0/README.md +156 -0
- texas2step-2.0.0/deploy/nginx/texas2step-http.conf +17 -0
- texas2step-2.0.0/deploy/nginx/texas2step-log.conf +11 -0
- texas2step-2.0.0/deploy/nginx/texas2step-speedtest.conf +20 -0
- texas2step-2.0.0/deploy/nginx/texas2step.conf +61 -0
- texas2step-2.0.0/deploy/texas2step-update.service +17 -0
- texas2step-2.0.0/deploy/texas2step-update.timer +12 -0
- texas2step-2.0.0/deploy/texas2step.default +13 -0
- texas2step-2.0.0/deploy/texas2step.service +36 -0
- texas2step-2.0.0/docs/access.md +491 -0
- texas2step-2.0.0/docs/api.md +218 -0
- texas2step-2.0.0/docs/configuration.md +253 -0
- texas2step-2.0.0/docs/development.md +242 -0
- texas2step-2.0.0/docs/images/hero-dark.jpg +0 -0
- texas2step-2.0.0/docs/images/results-dark.jpg +0 -0
- texas2step-2.0.0/docs/images/results-light.jpg +0 -0
- texas2step-2.0.0/docs/images/upload-light.jpg +0 -0
- texas2step-2.0.0/docs/install.md +828 -0
- texas2step-2.0.0/docs/methodology.md +249 -0
- texas2step-2.0.0/docs/roadmap.md +194 -0
- texas2step-2.0.0/docs/security.md +214 -0
- texas2step-2.0.0/docs/traffic.md +163 -0
- texas2step-2.0.0/legacy/README.md +82 -0
- texas2step-2.0.0/pyproject.toml +96 -0
- texas2step-2.0.0/src/texas2step/__init__.py +3 -0
- texas2step-2.0.0/src/texas2step/__main__.py +3 -0
- texas2step-2.0.0/src/texas2step/access.py +478 -0
- texas2step-2.0.0/src/texas2step/api/__init__.py +3 -0
- texas2step-2.0.0/src/texas2step/api/access.py +356 -0
- texas2step-2.0.0/src/texas2step/api/measure.py +173 -0
- texas2step-2.0.0/src/texas2step/api/meta.py +207 -0
- texas2step-2.0.0/src/texas2step/api/results.py +56 -0
- texas2step-2.0.0/src/texas2step/api/wire.py +198 -0
- texas2step-2.0.0/src/texas2step/app.py +458 -0
- texas2step-2.0.0/src/texas2step/cli.py +1298 -0
- texas2step-2.0.0/src/texas2step/cluster.py +285 -0
- texas2step-2.0.0/src/texas2step/config.py +348 -0
- texas2step-2.0.0/src/texas2step/config_edit.py +165 -0
- texas2step-2.0.0/src/texas2step/config_merge.py +161 -0
- texas2step-2.0.0/src/texas2step/config_template.toml +108 -0
- texas2step-2.0.0/src/texas2step/engine.py +498 -0
- texas2step-2.0.0/src/texas2step/iface.py +79 -0
- texas2step-2.0.0/src/texas2step/lockouts.py +316 -0
- texas2step-2.0.0/src/texas2step/logs.py +73 -0
- texas2step-2.0.0/src/texas2step/page.py +145 -0
- texas2step-2.0.0/src/texas2step/payload.py +38 -0
- texas2step-2.0.0/src/texas2step/rtc.py +300 -0
- texas2step-2.0.0/src/texas2step/static/assets/app.css +1 -0
- texas2step-2.0.0/src/texas2step/static/assets/app.js +8 -0
- texas2step-2.0.0/src/texas2step/static/assets/swagger/LICENSE +202 -0
- texas2step-2.0.0/src/texas2step/static/assets/swagger/NOTICE +2 -0
- texas2step-2.0.0/src/texas2step/static/assets/swagger/swagger-ui-bundle.js +2 -0
- texas2step-2.0.0/src/texas2step/static/assets/swagger/swagger-ui-bundle.js.LICENSE.txt +131 -0
- texas2step-2.0.0/src/texas2step/static/assets/swagger/swagger-ui.css +2 -0
- texas2step-2.0.0/src/texas2step/static/favicon.svg +11 -0
- texas2step-2.0.0/src/texas2step/static/index.html +78 -0
- texas2step-2.0.0/src/texas2step/stats.py +98 -0
- texas2step-2.0.0/src/texas2step/store.py +230 -0
- texas2step-2.0.0/src/texas2step/traffic.py +424 -0
- texas2step-2.0.0/src/texas2step/update.py +458 -0
- texas2step-2.0.0/src/texas2step/words.txt +1294 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Apache License
|
|
2
|
+
|
|
3
|
+
Version 2.0, January 2004<br>
|
|
4
|
+
<http://www.apache.org/licenses/>
|
|
5
|
+
|
|
6
|
+
## TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
**1. Definitions.**
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
**2. Grant of Copyright License.** Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
**3. Grant of Patent License.** Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
**4. Redistribution.** You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
**5. Submission of Contributions.** Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
**6. Trademarks.** This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
**7. Disclaimer of Warranty.** Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
**8. Limitation of Liability.** In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
**9. Accepting Warranty or Additional Liability.** While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
## END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
## APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
```text
|
|
191
|
+
Copyright [yyyy] [name of copyright owner]
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
|
204
|
+
```
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: texas2step
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Web-centric throughput, latency, jitter and packet-loss measurement between endpoints.
|
|
5
|
+
Project-URL: Homepage, https://github.com/robert-patrick-texas/texas2step
|
|
6
|
+
Project-URL: Documentation, https://robert-patrick-texas.github.io/texas2step/
|
|
7
|
+
Project-URL: Repository, https://github.com/robert-patrick-texas/texas2step
|
|
8
|
+
Project-URL: Issues, https://github.com/robert-patrick-texas/texas2step/issues
|
|
9
|
+
Author: Robert Patrick
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE.md
|
|
12
|
+
Keywords: jitter,latency,network,packet-loss,speedtest,webrtc
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: Framework :: FastAPI
|
|
16
|
+
Classifier: Intended Audience :: System Administrators
|
|
17
|
+
Classifier: Intended Audience :: Telecommunications Industry
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Topic :: System :: Networking :: Monitoring
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: aiortc>=1.9
|
|
23
|
+
Requires-Dist: fastapi>=0.115
|
|
24
|
+
Requires-Dist: httpx>=0.27
|
|
25
|
+
Requires-Dist: uvicorn[standard]>=0.32
|
|
26
|
+
Requires-Dist: websockets>=13
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# texas2step
|
|
30
|
+
|
|
31
|
+
**Throughput, latency, jitter and packet loss between endpoints, measured from a web
|
|
32
|
+
browser.** Open the page and press Start. texas2step measures the path between you
|
|
33
|
+
and the server with multi-stream HTTP transfers, latency probes idle and under load,
|
|
34
|
+
and real UDP packet loss over WebRTC, then shows every figure as discrete metrics and
|
|
35
|
+
graphs. The same measurements are available as a REST API, a Python CLI, and
|
|
36
|
+
server-to-server functions.
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
Inspired by [speed.cloudflare.com](https://speed.cloudflare.com)
|
|
41
|
+
([cloudflare/speedtest](https://github.com/cloudflare/speedtest)), but self-hosted: a
|
|
42
|
+
Python server, a dependency-free TypeScript client, and no third-party services, so it
|
|
43
|
+
works on air-gapped and internal networks.
|
|
44
|
+
|
|
45
|
+
## What it measures
|
|
46
|
+
|
|
47
|
+
| Metric | How | Transport |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| **Latency** | 20 keep-alive pings, timed with Resource Timing, server time removed | HTTP |
|
|
50
|
+
| **Jitter** | Mean absolute difference between consecutive RTTs | HTTP |
|
|
51
|
+
| **Download / upload** | N parallel streams for T seconds, 100 ms timeline, ramp-up excluded | HTTP |
|
|
52
|
+
| **Latency under load** | Probes every 250 ms on a separate connection during each transfer, graded A+ to F | WebSocket |
|
|
53
|
+
| **Packet loss** | Numbered probes on an unreliable data channel, echoed; up- and downstream loss separated | UDP (WebRTC) |
|
|
54
|
+
| **Stream fairness** | Per-stream rates and Jain's index | HTTP |
|
|
55
|
+
| **Readiness** | Grades for streaming, video calls, reaction time/VDI/SSH and bulk transfers | derived |
|
|
56
|
+
|
|
57
|
+
Details and definitions: [docs/methodology.md](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/methodology.md).
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
The UI has five views: **Test** (gauge, live link animation, charts, exportable and
|
|
62
|
+
shareable results), **Monitor** (continuous UDP probing with a scrolling RTT and loss
|
|
63
|
+
trace, to one server or to two at once for a side-by-side comparison), **Diag** (HTTPS,
|
|
64
|
+
WebSocket and UDP over IPv4 and IPv6, tried once a second, with your addresses, NAT,
|
|
65
|
+
TLS and an event log), **History** (saved runs and trend), and **API** (copy-ready
|
|
66
|
+
examples). A site can hide any of them (`page_test`, `page_monitor`, `page_diag`,
|
|
67
|
+
`page_history`, `page_api`). Every
|
|
68
|
+
chart has a hover readout and a table equivalent.
|
|
69
|
+
|
|
70
|
+
Visitors pick a theme from the header: Light, Dark, America, Energy, Federal, Military or
|
|
71
|
+
Texas, or one that follows the OS. A page-size drop-down beside it (70% to 125%) fits more on smaller screens. Operators can rename the site, add their logo, organization and
|
|
72
|
+
support links, show a notice on every page and set the default theme; see
|
|
73
|
+
[Branding and themes](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/configuration.md#branding-and-themes).
|
|
74
|
+
|
|
75
|
+
## Install
|
|
76
|
+
|
|
77
|
+
On an Ubuntu 26.04 LTS server that already runs nginx, install the Debian package from
|
|
78
|
+
the [releases page](https://github.com/robert-patrick-texas/texas2step/releases) and add
|
|
79
|
+
one line to your site's `server { }` block:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
sudo apt install ./texas2step-*-amd64.deb # the package from the releases page
|
|
83
|
+
# in /etc/nginx/sites-available/<your site>: include snippets/texas2step.conf;
|
|
84
|
+
sudo nginx -t && sudo systemctl reload nginx # → https://www.example.net/texas2step/
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Or let `texas2step-setup`, which ships next to the `.deb`, check the server first. It
|
|
88
|
+
reports what it will change and what you must fix, then writes an install script for
|
|
89
|
+
that server. The script installs, reinstalls or upgrades texas2step, merges your
|
|
90
|
+
settings into the new template, publishes it through nginx and opens the UDP range:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
sudo ./texas2step-setup --id houston --name "houston.example.net" --location "Houston, TX"
|
|
94
|
+
sudo ./texas2step-install.sh # after reading it
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Once installed, `sudo texas2step update` upgrades it to the newest release, and a timer
|
|
98
|
+
can do that unattended. On a server without internet access,
|
|
99
|
+
`sudo texas2step update --from <directory>` installs a release whose two files you put
|
|
100
|
+
there. The [install guide](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/install.md) covers the rest: the setup
|
|
101
|
+
tool's options, the optional `/speedtest` address, configuration, the firewall rule for
|
|
102
|
+
the UDP test, updates, clearing saved results, cloning a server and removal.
|
|
103
|
+
|
|
104
|
+
To run it from source instead:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
uv sync && uv run texas2step serve # http://localhost:8080
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Building, testing, the docs site and packaging are covered in
|
|
111
|
+
[docs/development.md](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/development.md).
|
|
112
|
+
|
|
113
|
+
## Command line
|
|
114
|
+
|
|
115
|
+
The CLI runs the same engine from any host toward a texas2step server. The package
|
|
116
|
+
installs it as `/usr/bin/texas2step`; elsewhere, `uv tool install texas2step` (or
|
|
117
|
+
`pipx install texas2step`) installs it from PyPI.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
texas2step run https://www.example.net/texas2step # full test, human-readable
|
|
121
|
+
texas2step run https://www.example.net/texas2step --json --save
|
|
122
|
+
texas2step latency https://www.example.net/texas2step --count 50
|
|
123
|
+
texas2step download https://www.example.net/texas2step --streams 8 --seconds 15
|
|
124
|
+
texas2step upload https://www.example.net/texas2step
|
|
125
|
+
texas2step loss https://www.example.net/texas2step --packets 1000 --interval 5
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
client 127.0.0.1 (IPv4, HTTP/1.1)
|
|
130
|
+
this computer 127.0.0.1
|
|
131
|
+
|
|
132
|
+
Latency 1.26 ms jitter 0.09 ms (min 1.17 · p90 1.53 · 20 samples)
|
|
133
|
+
Download 6,240.5 Mbps peak 6,543.6 (2 streams · loaded -0.5 ms)
|
|
134
|
+
Upload 13,624.1 Mbps peak 14,188.3 (2 streams · loaded -0.1 ms)
|
|
135
|
+
Loss 0.00 % (0/200 lost · ↑ 0.00 % ↓ 0.00 % · UDP RTT 0.92 ms · jitter 0.10 ms)
|
|
136
|
+
Bufferbloat A+
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`client` is the address the server sees; `this computer` is the CLI's own on that
|
|
140
|
+
connection, before any NAT, with the interface's MAC address on Linux. `--save` stores
|
|
141
|
+
both with the result, and `--no-local` leaves them out.
|
|
142
|
+
|
|
143
|
+
## API
|
|
144
|
+
|
|
145
|
+
Every primitive is a plain HTTP endpoint (`/api/v1/ping`, `/down`, `/up`, `/ws`,
|
|
146
|
+
`/rtc/offer`), and a server can measure toward another server on request:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
curl -o /dev/null 'https://www.example.net/texas2step/api/v1/down?bytes=1000000000'
|
|
150
|
+
curl -s -X POST https://dallas.example.net/texas2step/api/v1/measure/full \
|
|
151
|
+
-H 'content-type: application/json' -d '{"target": "https://houston.example.net/texas2step"}'
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Full reference: [docs/api.md](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/api.md), or `/api/docs` on a running server.
|
|
155
|
+
|
|
156
|
+
## Several locations
|
|
157
|
+
|
|
158
|
+
List other texas2step servers in the config and they appear in the header's server
|
|
159
|
+
picker. The browser tests the chosen server directly (cross-origin), and each server can
|
|
160
|
+
measure the others through the API. See [docs/configuration.md](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/configuration.md).
|
|
161
|
+
For servers open to the Internet, see [Access codes](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/access.md).
|
|
162
|
+
|
|
163
|
+
## Documentation
|
|
164
|
+
|
|
165
|
+
* [Install](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/install.md): the Ubuntu package, nginx, firewall, upgrades.
|
|
166
|
+
* [Configuration](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/configuration.md): every setting.
|
|
167
|
+
* [Access codes](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/access.md): servers open to the Internet, a code from the service
|
|
168
|
+
desk, and the desk's tools kept to your networks.
|
|
169
|
+
* [Traffic limits](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/traffic.md): a daily and monthly cap on what the tests move,
|
|
170
|
+
for servers whose traffic is billed.
|
|
171
|
+
* [Security](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/security.md): the security controls, what each guards against, and
|
|
172
|
+
what is left to the operator.
|
|
173
|
+
* [Methodology](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/methodology.md): what is measured, and how.
|
|
174
|
+
* [API](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/api.md): endpoints and the UDP probe protocol.
|
|
175
|
+
* [Development](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/development.md): running from source, tests, docs site, packaging,
|
|
176
|
+
releases.
|
|
177
|
+
* [Roadmap](https://github.com/robert-patrick-texas/texas2step/blob/main/docs/roadmap.md): ideas for future work.
|
|
178
|
+
|
|
179
|
+
The same pages are published at
|
|
180
|
+
[robert-patrick-texas.github.io/texas2step](https://robert-patrick-texas.github.io/texas2step/).
|
|
181
|
+
|
|
182
|
+
## License
|
|
183
|
+
|
|
184
|
+
Copyright 2026 Robert Patrick. Licensed under the [Apache License 2.0](https://github.com/robert-patrick-texas/texas2step/blob/main/LICENSE.md).
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# texas2step
|
|
2
|
+
|
|
3
|
+
**Throughput, latency, jitter and packet loss between endpoints, measured from a web
|
|
4
|
+
browser.** Open the page and press Start. texas2step measures the path between you
|
|
5
|
+
and the server with multi-stream HTTP transfers, latency probes idle and under load,
|
|
6
|
+
and real UDP packet loss over WebRTC, then shows every figure as discrete metrics and
|
|
7
|
+
graphs. The same measurements are available as a REST API, a Python CLI, and
|
|
8
|
+
server-to-server functions.
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
Inspired by [speed.cloudflare.com](https://speed.cloudflare.com)
|
|
13
|
+
([cloudflare/speedtest](https://github.com/cloudflare/speedtest)), but self-hosted: a
|
|
14
|
+
Python server, a dependency-free TypeScript client, and no third-party services, so it
|
|
15
|
+
works on air-gapped and internal networks.
|
|
16
|
+
|
|
17
|
+
## What it measures
|
|
18
|
+
|
|
19
|
+
| Metric | How | Transport |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| **Latency** | 20 keep-alive pings, timed with Resource Timing, server time removed | HTTP |
|
|
22
|
+
| **Jitter** | Mean absolute difference between consecutive RTTs | HTTP |
|
|
23
|
+
| **Download / upload** | N parallel streams for T seconds, 100 ms timeline, ramp-up excluded | HTTP |
|
|
24
|
+
| **Latency under load** | Probes every 250 ms on a separate connection during each transfer, graded A+ to F | WebSocket |
|
|
25
|
+
| **Packet loss** | Numbered probes on an unreliable data channel, echoed; up- and downstream loss separated | UDP (WebRTC) |
|
|
26
|
+
| **Stream fairness** | Per-stream rates and Jain's index | HTTP |
|
|
27
|
+
| **Readiness** | Grades for streaming, video calls, reaction time/VDI/SSH and bulk transfers | derived |
|
|
28
|
+
|
|
29
|
+
Details and definitions: [docs/methodology.md](docs/methodology.md).
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
The UI has five views: **Test** (gauge, live link animation, charts, exportable and
|
|
34
|
+
shareable results), **Monitor** (continuous UDP probing with a scrolling RTT and loss
|
|
35
|
+
trace, to one server or to two at once for a side-by-side comparison), **Diag** (HTTPS,
|
|
36
|
+
WebSocket and UDP over IPv4 and IPv6, tried once a second, with your addresses, NAT,
|
|
37
|
+
TLS and an event log), **History** (saved runs and trend), and **API** (copy-ready
|
|
38
|
+
examples). A site can hide any of them (`page_test`, `page_monitor`, `page_diag`,
|
|
39
|
+
`page_history`, `page_api`). Every
|
|
40
|
+
chart has a hover readout and a table equivalent.
|
|
41
|
+
|
|
42
|
+
Visitors pick a theme from the header: Light, Dark, America, Energy, Federal, Military or
|
|
43
|
+
Texas, or one that follows the OS. A page-size drop-down beside it (70% to 125%) fits more on smaller screens. Operators can rename the site, add their logo, organization and
|
|
44
|
+
support links, show a notice on every page and set the default theme; see
|
|
45
|
+
[Branding and themes](docs/configuration.md#branding-and-themes).
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
On an Ubuntu 26.04 LTS server that already runs nginx, install the Debian package from
|
|
50
|
+
the [releases page](https://github.com/robert-patrick-texas/texas2step/releases) and add
|
|
51
|
+
one line to your site's `server { }` block:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
sudo apt install ./texas2step-*-amd64.deb # the package from the releases page
|
|
55
|
+
# in /etc/nginx/sites-available/<your site>: include snippets/texas2step.conf;
|
|
56
|
+
sudo nginx -t && sudo systemctl reload nginx # → https://www.example.net/texas2step/
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or let `texas2step-setup`, which ships next to the `.deb`, check the server first. It
|
|
60
|
+
reports what it will change and what you must fix, then writes an install script for
|
|
61
|
+
that server. The script installs, reinstalls or upgrades texas2step, merges your
|
|
62
|
+
settings into the new template, publishes it through nginx and opens the UDP range:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
sudo ./texas2step-setup --id houston --name "houston.example.net" --location "Houston, TX"
|
|
66
|
+
sudo ./texas2step-install.sh # after reading it
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Once installed, `sudo texas2step update` upgrades it to the newest release, and a timer
|
|
70
|
+
can do that unattended. On a server without internet access,
|
|
71
|
+
`sudo texas2step update --from <directory>` installs a release whose two files you put
|
|
72
|
+
there. The [install guide](docs/install.md) covers the rest: the setup
|
|
73
|
+
tool's options, the optional `/speedtest` address, configuration, the firewall rule for
|
|
74
|
+
the UDP test, updates, clearing saved results, cloning a server and removal.
|
|
75
|
+
|
|
76
|
+
To run it from source instead:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
uv sync && uv run texas2step serve # http://localhost:8080
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Building, testing, the docs site and packaging are covered in
|
|
83
|
+
[docs/development.md](docs/development.md).
|
|
84
|
+
|
|
85
|
+
## Command line
|
|
86
|
+
|
|
87
|
+
The CLI runs the same engine from any host toward a texas2step server. The package
|
|
88
|
+
installs it as `/usr/bin/texas2step`; elsewhere, `uv tool install texas2step` (or
|
|
89
|
+
`pipx install texas2step`) installs it from PyPI.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
texas2step run https://www.example.net/texas2step # full test, human-readable
|
|
93
|
+
texas2step run https://www.example.net/texas2step --json --save
|
|
94
|
+
texas2step latency https://www.example.net/texas2step --count 50
|
|
95
|
+
texas2step download https://www.example.net/texas2step --streams 8 --seconds 15
|
|
96
|
+
texas2step upload https://www.example.net/texas2step
|
|
97
|
+
texas2step loss https://www.example.net/texas2step --packets 1000 --interval 5
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
client 127.0.0.1 (IPv4, HTTP/1.1)
|
|
102
|
+
this computer 127.0.0.1
|
|
103
|
+
|
|
104
|
+
Latency 1.26 ms jitter 0.09 ms (min 1.17 · p90 1.53 · 20 samples)
|
|
105
|
+
Download 6,240.5 Mbps peak 6,543.6 (2 streams · loaded -0.5 ms)
|
|
106
|
+
Upload 13,624.1 Mbps peak 14,188.3 (2 streams · loaded -0.1 ms)
|
|
107
|
+
Loss 0.00 % (0/200 lost · ↑ 0.00 % ↓ 0.00 % · UDP RTT 0.92 ms · jitter 0.10 ms)
|
|
108
|
+
Bufferbloat A+
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
`client` is the address the server sees; `this computer` is the CLI's own on that
|
|
112
|
+
connection, before any NAT, with the interface's MAC address on Linux. `--save` stores
|
|
113
|
+
both with the result, and `--no-local` leaves them out.
|
|
114
|
+
|
|
115
|
+
## API
|
|
116
|
+
|
|
117
|
+
Every primitive is a plain HTTP endpoint (`/api/v1/ping`, `/down`, `/up`, `/ws`,
|
|
118
|
+
`/rtc/offer`), and a server can measure toward another server on request:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
curl -o /dev/null 'https://www.example.net/texas2step/api/v1/down?bytes=1000000000'
|
|
122
|
+
curl -s -X POST https://dallas.example.net/texas2step/api/v1/measure/full \
|
|
123
|
+
-H 'content-type: application/json' -d '{"target": "https://houston.example.net/texas2step"}'
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Full reference: [docs/api.md](docs/api.md), or `/api/docs` on a running server.
|
|
127
|
+
|
|
128
|
+
## Several locations
|
|
129
|
+
|
|
130
|
+
List other texas2step servers in the config and they appear in the header's server
|
|
131
|
+
picker. The browser tests the chosen server directly (cross-origin), and each server can
|
|
132
|
+
measure the others through the API. See [docs/configuration.md](docs/configuration.md).
|
|
133
|
+
For servers open to the Internet, see [Access codes](docs/access.md).
|
|
134
|
+
|
|
135
|
+
## Documentation
|
|
136
|
+
|
|
137
|
+
* [Install](docs/install.md): the Ubuntu package, nginx, firewall, upgrades.
|
|
138
|
+
* [Configuration](docs/configuration.md): every setting.
|
|
139
|
+
* [Access codes](docs/access.md): servers open to the Internet, a code from the service
|
|
140
|
+
desk, and the desk's tools kept to your networks.
|
|
141
|
+
* [Traffic limits](docs/traffic.md): a daily and monthly cap on what the tests move,
|
|
142
|
+
for servers whose traffic is billed.
|
|
143
|
+
* [Security](docs/security.md): the security controls, what each guards against, and
|
|
144
|
+
what is left to the operator.
|
|
145
|
+
* [Methodology](docs/methodology.md): what is measured, and how.
|
|
146
|
+
* [API](docs/api.md): endpoints and the UDP probe protocol.
|
|
147
|
+
* [Development](docs/development.md): running from source, tests, docs site, packaging,
|
|
148
|
+
releases.
|
|
149
|
+
* [Roadmap](docs/roadmap.md): ideas for future work.
|
|
150
|
+
|
|
151
|
+
The same pages are published at
|
|
152
|
+
[robert-patrick-texas.github.io/texas2step](https://robert-patrick-texas.github.io/texas2step/).
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
Copyright 2026 Robert Patrick. Licensed under the [Apache License 2.0](LICENSE.md).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# texas2step: http-level definitions for snippets/texas2step.conf.
|
|
2
|
+
# Installed as /etc/nginx/conf.d/texas2step.conf, which Ubuntu's nginx.conf loads
|
|
3
|
+
# inside its http { } block. On its own it changes nothing.
|
|
4
|
+
|
|
5
|
+
# The texas2step service; keep in step with LISTEN_HOST/LISTEN_PORT in
|
|
6
|
+
# /etc/default/texas2step.
|
|
7
|
+
upstream texas2step {
|
|
8
|
+
server 127.0.0.1:8080;
|
|
9
|
+
keepalive 32;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
# Send "Connection: upgrade" only for WebSocket requests; otherwise keep the
|
|
13
|
+
# upstream connection alive.
|
|
14
|
+
map $http_upgrade $texas2step_connection {
|
|
15
|
+
default upgrade;
|
|
16
|
+
"" "";
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# texas2step: the log format of its nginx snippets.
|
|
2
|
+
# Installed as /etc/nginx/conf.d/texas2step-log.conf, which Ubuntu's nginx.conf loads
|
|
3
|
+
# inside its http { } block. A file of its own, so that an upgrade brings it even where
|
|
4
|
+
# conf.d/texas2step.conf was edited (dpkg keeps an edited file as it is).
|
|
5
|
+
|
|
6
|
+
# nginx's combined format, with the path in place of the whole request line: the query
|
|
7
|
+
# string can hold an access pass (?pass=), which would let anyone who reads the log test
|
|
8
|
+
# until it expires.
|
|
9
|
+
log_format texas2step '$remote_addr - $remote_user [$time_local] '
|
|
10
|
+
'"$request_method $uri $server_protocol" $status $body_bytes_sent '
|
|
11
|
+
'"$http_referer" "$http_user_agent"';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Optional: https://www.example.net/speedtest as a second address for texas2step.
|
|
2
|
+
#
|
|
3
|
+
# Installed as /etc/nginx/snippets/texas2step-speedtest.conf. Include it next to
|
|
4
|
+
# snippets/texas2step.conf in the same server { } block:
|
|
5
|
+
#
|
|
6
|
+
# include snippets/texas2step-speedtest.conf;
|
|
7
|
+
#
|
|
8
|
+
# Visitors are redirected, so links and saved results always use /texas2step/.
|
|
9
|
+
# The redirects are temporary (302), so browsers don't remember them if you later
|
|
10
|
+
# use /speedtest for something else.
|
|
11
|
+
|
|
12
|
+
location = /speedtest {
|
|
13
|
+
absolute_redirect off;
|
|
14
|
+
return 302 /texas2step/;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
location ^~ /speedtest/ {
|
|
18
|
+
absolute_redirect off;
|
|
19
|
+
rewrite ^/speedtest/(.*)$ /texas2step/$1 redirect;
|
|
20
|
+
}
|