GithubHelp home page GithubHelp logo

ping.py's Introduction

FORK

  • Ported to python 3.x

INSTALLATION

  • use conda or anaconda for python
  • it uses: pandas, matplotlib and related to monitor and report

USAGE

  • execute monitor.py every 15 minutes
  • execute report.bat to report stats
  • figure 1

CHANGELOG

  • v1.0
    • monitor
    • report:
      • remove outliers (quantile 0.15 - 0.85)
      • smooth lines
      • average latency and jitter

ping.py

Network ping with delay, jitter and MOS

The original code was obtained from: http://www.routereflector.com/2014/08/network-ping-with-delay-jitter-and-mos/

The original code has been through a number of authors and iterations.

This next iteration allows:

  • a different nagios output (for check_mk)
  • rrd code commented out, but can be uncommented for use
  • provide a source ip address and source description

linux policy based routing example:

  • local interface eth0: 10.1.1.1/30
  • other end: 10.1.1.2/30 (this is default gateway)
  • local interface eth1: 10.1.2.1/30
  • other end: 10.1.2.2/30
  • destination host: 10.1.3.1
ip route add 0/0 via 10.1.1.2
ip route add 0/0 via 10.1.2.2 dev eth1 table 6
ip route add from 10.1.2.1/32 lookup 6 priority 100
  • The first default route is the main system default route.
  • The second default route is placed into table 6 as a special lookup.
  • Then a policy is added meaning that anything from 10.1.2.1/32 uses table 6 for destionation lookup
  • Table 6 has the default route out eth1 for sending traffic originating from 10.1.2.1/32

so example ping would be:

/usr/bin/python ~/ping/ping.py -c 20 -t 1 -n int_eth1 -s 10.1.2.1 -d 10.1.3.1

The ping will go out interface eth1 with the policy-based route in place. Without the policy based route in place, the ping will go out eth0.

blog.raymond.burkholder.net: ping with loss delay jitter and MOS

Files in the lib directory are for historical value only, and are not necessary for operation of ping.py.

ping.py's People

Contributors

billygl avatar rburkholder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.