Skip to main content

Loss Checker

Project description

Loss checker

This module helps to check udp client/server packet loss. Can be run as client or server. Client send random string to server, waits for answer and when packet will receive, compare sended string with received and count time difference (ping). If packet is loss, answer will never be received and timeout will occur.

Module can be installed on multiple servers and checks on one client.

Prerequisites

- Python3.5 or newer

Installion

$ python3 -m pip install loss_checker

OR

$ python3 -m pip install git+https://github.com/jok4r/loss_checker.git

Usage / Eng

Run as client

$ python3 -m loss_checker

Run as server

$ python3 -m loss_checker --server

Run server as a service

*Can be run only on Linux

$ python3 -m loss_checker --server --install

If you want to answer the question automatically (that the module will be installed as a service), add argument -y:

$ python3 -m loss_checker --server --install -y

And it will be installed and run as a service. You can check status, start and stop service with following commands:

$ service loss_checker status

$ service loss_checker start

$ service loss_checker stop

Enabling and disabling service

$ systemctl enable loss_checker

$ systemctl disable loss_checker

Uninstall service

$ python3 -m loss_checker --server --uninstall

You can add -y option to skip confirmation question:

$ python3 -m loss_checker --server --uninstall -y

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loss_checker-0.6.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loss_checker-0.6.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file loss_checker-0.6.1.tar.gz.

File metadata

  • Download URL: loss_checker-0.6.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for loss_checker-0.6.1.tar.gz
Algorithm Hash digest
SHA256 959abc5695f2faf1befcefee10d5cfe300d41994de30ac5675c21dc403a6e10a
MD5 64f7a9e86f0cea194c59445d934d6b98
BLAKE2b-256 0b72f8f9095ec1d99c8492960f3a1d7037caade8c41b26562d8160e64cf67133

See more details on using hashes here.

File details

Details for the file loss_checker-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: loss_checker-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for loss_checker-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9418fb475be32f0be818c52eb227cf94357d5988c9f79e1476e5fa8bae058cb0
MD5 c45e2ae0af65032e4e63731d66d206cc
BLAKE2b-256 90e2a032298b3ba65da125e17078dd0a2dcfd34b716649c594d942e5b3e035e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page