zoukankan      html  css  js  c++  java
  • TCP/IP capture/analysis tools in Unix/Linux

    There are some useful tools in Unix/Linux to check out how the system is going on.

    Here is a short summery of them:

    This comes from a link below.

    =======8X-----------Start-of-quotation------------X8=======

    Linux性能诊断工具

    http://www.2cto.com/os/201409/330096.html

    vmstat:虚拟内存状况 –swpd free buff cache si so in cs 参考:http://www.cnblogs.com/ggjucheng/archive/2012/01/05/2312625.html

    iostat:io状况 avgqu-sz await svctm 参考:http://blog.csdn.net/dbanote/article/details/17784429 
    mpstat: cpu状况 sys usr iowait 参考:http://blog.csdn.net/evils798/article/details/7524474 
    ifstat:网络状况 –in out 
    dstat:所有资源统计汇总 –资源汇总 参考:http://blog.csdn.net/yuandianlws/article/details/7004364 
    tcpstat: 查看某个tcp端口的响应时间 tcprstat -lxxx.xxx.xxx.xxx -p 3306 -t 1 -n 0 
    参考:http://my.oschina.net/moooofly/blog/157063 
    tcpdump: 抓包 tcprstat -l xxx.xxx.xxx.xxx -p 3306 -t 1 -n 0 

    =======8X------End-of-quotation----------X8=======

    Let's see another one specifically which is neat to use when analysing TCP capture details

    Notice: tool 'tcprstat' is better to test the request/response timing durance and etc..

    while tool 'tcpstat' has something to do with its package capturing.

    'tcpdump' is another great tool which works with them.

    =======8X-----------Start-of-quotation------------X8=======

    TCP capture analysis and TCP analogy

    For tool 'tcprstat'

    Here's its github page: https://github.com/Lowercases/tcprstat/

    To install 'tcprstat' and 'tcpstat'

    git clone https://github.com/Lowercases/tcprstat.git
    cd tcprstat
    chmod +x bootstrap
    # if you are using debian/ubuntu/or ubuntu's derived destros, you would need to install package automake and autoconf
    apt-get install automake autoconf -y
    ./bootstrap
    #then
    ./configure --prefix=/usr/local # wherever the path you want
    make
    make install
    
    
    # notice there are no package tcprstat in debian/ubuntu's software source repository. but they have the package 'tcpstat'. So,
    
    apt-get install tcpstat -y

     http://my.oschina.net/moooofly/blog/157063

    But I have to clearify that there are some errors in the ariticle that the author tried to

    state the differences or the similarities between the tool 'tcprstat' and the tool 'tcpstat'.

    Actually his essay is all about the tool 'tcprstat'.

    =======8X------------End-of-quotation-------------X8=======

    How to figure out the TCP package in an interactive chart?

    He uses PHP, tcpstat and gnuplot to decorate the statistics.

    Here's is the HOW-TO:

    http://www.frenchfries.net/paul/tcpstat/gnuplot_howto.html

    And it's tutorial from youtube:

    https://www.youtube.com/watch?v=fwmmRdT351Q

  • 相关阅读:
    刷题[CISCN2019 华东南赛区]Web4
    刷题[GWCTF 2019]你的名字
    刷题[b01lers2020]Life on Mars
    刷题[SUCTF 2018]GetShell
    洛谷入门2-分支结构
    洛谷入门3-循环结构:回文质数、斐波那契数列
    洛谷入门3-循环结构:金币、最长连号
    洛谷入门3-循环结构:津津的储蓄计划
    C++类成员初始化方法
    英语听力
  • 原文地址:https://www.cnblogs.com/spaceship9/p/3952800.html
Copyright © 2011-2022 走看看