Giter Club home page Giter Club logo

tcp-keepalive's People

Contributors

wall-e avatar xuyz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tcp-keepalive's Issues

feat(stat) add latency stat

For example

  • detail
  • stat
[root@localhost tcping]# ./tcping www.baidu.com
TCPING www.baidu.com:80
response from www.baidu.com:80, seq=0 time=8.50 ms
response from www.baidu.com:80, seq=1 time=7.53 ms
response from www.baidu.com:80, seq=2 time=16.33 ms
response from www.baidu.com:80, seq=3 time=7.15 ms
response from www.baidu.com:80, seq=4 time=8.31 ms
response from www.baidu.com:80, seq=5 time=12.98 ms
response from www.baidu.com:80, seq=6 time=11.50 ms
response from www.baidu.com:80, seq=7 time=9.87 ms
response from www.baidu.com:80, seq=8 time=17.79 ms
response from www.baidu.com:80, seq=9 time=7.72 ms
^C
receive signal:[2]
--- www.baidu.com:80 tcping statistics ---
10 responses, 10 ok, 0.00% failed
round-trip min/avg/max = 7.2/10.8/17.8 ms

Ref

capture data from all net device

For example

[root@vagrant-172-28-32-220 src]# tcpdump -D
1.enp0s3
2.enp0s8
3.docker0
4.nflog (Linux netfilter log (NFLOG) interface)
5.nfqueue (Linux netfilter queue (NFQUEUE) interface)
6.veth7c436aa
7.veth23db264
8.vethcbb54c1
9.any (Pseudo-device that captures on all interfaces)
10.lo [Loopback]

Additional information

need to delete option: --interface

bug: fast exit when server misbehaving

[root@vagrant-172-28-32-226 ~]# ./tcp-keepalive probe --host probe apis.qianbao.com --port 80 -i enp0s8
2017/12/20 13:39:13 heartbeat err :lookup probe on 10.0.2.3:53: server misbehaving
2017/12/20 13:39:16 start tcpdmp device:enp0s8, filter:host probe and tcp and port 80

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.