openresty-app / tcp-keepalive Goto Github PK
View Code? Open in Web Editor NEWmeasures the latency of a tcp keepalive
License: MIT License
measures the latency of a tcp keepalive
License: MIT License
[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
[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]
need to delete option: --interface
supports two modes of interaction
[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
print capture package info
@xuyz add version 0.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.