Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmetozer/uping
Unidirectional Latency Find Tool
https://github.com/ahmetozer/uping
golang latency net-tools network ping uping
Last synced: 10 days ago
JSON representation
Unidirectional Latency Find Tool
- Host: GitHub
- URL: https://github.com/ahmetozer/uping
- Owner: ahmetozer
- Created: 2020-12-31T19:27:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T12:49:21.000Z (over 3 years ago)
- Last Synced: 2024-06-20T02:09:34.088Z (5 months ago)
- Topics: golang, latency, net-tools, network, ping, uping
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# uping
Unidirectional Latency Find Tool
Determine latency with unidirectional measurements.
This not like run only client side, it is requires server side for measure.
## Server
Avaible server configurations:
- --listen string
Listen addr for this service (default ":50123")- --timeserver string
Time server which is used for updating time (default "time.cloudflare.com")
- --tsi uint
Time sync interval for time client (default 10)```bash
$ uping server
Server Mode
Time synced, the offset is "365.299µs"
```## Client
Avaible client configurations:
- -c number
Ping count
- -i number
Ping interval (default 1)
- -p number
Remote server custom port number
- -sp number
Source port number
- --timeserver string
Time server which is used for updating time (default "time.cloudflare.com")
- --tsi number
Time sync interval for time client (default 10)```bash
uping client 203.0.113.123
Client Mode
Time synced, the offset is "-307.962038ms"Pinging from 172.17.0.2:45578 to 203.0.113.123:50123
6 bytes client > 36ms > server(203.0.113.123) > 50ms > client total 86 seq 1
6 bytes client > 36ms > server(203.0.113.123) > 50ms > client total 86 seq 2
6 bytes client > 37ms > server(203.0.113.123) > 49ms > client total 86 seq 3
6 bytes client > 38ms > server(203.0.113.123) > 50ms > client total 88 seq 4
6 bytes client > 38ms > server(203.0.113.123) > 50ms > client total 88 seq 55 packets transmitted, 5 received, 0% packet Loss
Average outbound packet delay 37
Average inbound packet delay 50
```## Install From Source
For compiling, you have to install go on your system. If you want to use docker, you can also use my "ahmetozer/golang" container for compile and run.
```bash
# Get source
go get github.com/ahmetozer/uping# To build
go build github.com/ahmetozer/uping# Run app
uping
```