09
2025
04
17:08:29

wireshark、tshark、dumpcap和 tcpdump

目录

    • 区别

      • tcpdump wireshark 对比

    • Tshark 和 Dumpcap 性能对比

    • 参考


他们之间的关系大概如下

libpcap => tcpdump  
	=> dumpcap => tshark\Wireshark

tcpdump 、dumpcap 都是基于libpcap 封装,dumpcap 是 tshark\Wireshark 的引擎,而Wireshark 是 tshark的GUI 版本。

区别

Wireshark – a powerful sniffer, with a GUI, which can decode lots of protocols, lots of filters.

Wireshark – 一个强大的嗅探器,带有GUI,可以解码很多协议,很多过滤器。

tshark – command-line version of Wireshark

tshark – Wireshark 的命令行版本

dumpcap (part of Wireshark) – can only capture traffic and can be used by Wireshark / tshark

Dumpcap(Wireshark的一部分) - 只能捕获流量,可以被Wireshark/tshark使用

补充(相比之下Dumpcap会比tshark节省内存)

tcpdump – limited protocol decoding but available on most *NIX platforms

tcpdump – 有限的协议解码,但在大多数 *NIX 平台上可用

tcpdump wireshark 对比

Sr NoWiresharkTcpdump
1Wireshark is a graphical user interface tool that helps you to catch data packets.Tcpdump is a CLI-based packet capturing tool.
2It does packet analysis, and it can decode data payloads if the encryption keys are identified, and it can recognize data payloads from file transfers such as smtp, http, etc.Tcpdump only provides do a simple analysis of such types of traffic, such as DNS queries.
3It has advanced network interfacesIt has system based conventional interfaces
4Wireshark is good for complex filtersTcpdump is used for simple filters.
5It provides decoding of protocol-based packet capturing.It is less efficient in decoding compared to Wireshark.

Tshark 和 Dumpcap 性能对比

Tony Fortunato有进行过测试并把结果发布在YOUTUBE上Wireshark tshark vs dumpcap。当然该测试针对的时利用率低于 50% 且帧大小约为 800 字节的流量捕获的流量,结果是 Dumpcap 相比 Tshark 都会随着数据增加而丢包,但 Dumpcap 会表现得更好点。

Wireshark Packet Capture: Tshark Vs. Dumpcap test result

参考

https://techyrick.com/dumpcap/
tcpdump-vs-wireshark
Wireshark Packet Capture: Tshark Vs. Dumpcap




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://zblog.hqyman.cn/post/10273.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: