tcpdump丢包问题
2010-10-29 00:47
113 查看
The kernel has a buffer for packets to be delivered to tcpdump. If
tcpdump doesn't respond quickly enough, the kernel will overwrite old
packets with new ones.
使用tcpdump抓包时,内核分配缓冲区存放向tcpdump传送的数据包,如果tcpdump处理的不够快,新到达的包会覆盖缓冲区中较早的包,即出现dropped丢包的情况。
解决方法:
1. 增大系统缓冲区大小 bpfbufsize
2. 避免tcpdump进行dns解析,使用tcpdump -n参数。尽量减少tcpdump的工作量,其他的参数如-nn等可参考。
Dropped packets
At the end of its run,
TCPdump will inform you if any packets were dropped in the kernel. If
this becomes a problem, it's likely that your host can't keep up with
the network traffic and decode it at the same time. Try using TCPdump's
-w
option to bypass the decoding and write the raw packets to a file, then come back later and decode the file with the -r
switch. You can also try using -s
to reduce the capture snapshot size.
tcpdump doesn't respond quickly enough, the kernel will overwrite old
packets with new ones.
使用tcpdump抓包时,内核分配缓冲区存放向tcpdump传送的数据包,如果tcpdump处理的不够快,新到达的包会覆盖缓冲区中较早的包,即出现dropped丢包的情况。
解决方法:
1. 增大系统缓冲区大小 bpfbufsize
2. 避免tcpdump进行dns解析,使用tcpdump -n参数。尽量减少tcpdump的工作量,其他的参数如-nn等可参考。
Dropped packets
At the end of its run,
TCPdump will inform you if any packets were dropped in the kernel. If
this becomes a problem, it's likely that your host can't keep up with
the network traffic and decode it at the same time. Try using TCPdump's
-w
option to bypass the decoding and write the raw packets to a file, then come back later and decode the file with the -r
switch. You can also try using -s
to reduce the capture snapshot size.
相关文章推荐
- tcpdump丢包问题解决方法
- 解决 tcpdump 抓包时的丢包问题 - mptcp
- tcpdump丢包问题解决方法
- tcpdump丢包问题分析
- tcpdump丢包问题解决方法
- tcpdump丢包问题解决方法
- Centos出现丢包问题解决办法
- 交换机涉及丢包问题进行流量统计
- linux 丢包问题
- UDP丢包及无序的问题
- 使用wireshark检测RTP丢包问题
- UDP主要丢包原因及具体问题分析
- 安装好tcpdump和libpcap后不能抓包的问题!
- UDP丢包及无序问题
- netback的tasklet调度问题及网卡丢包的简单分析
- TCP传输过程中丢包问题
- 如何用vb的winsocket解决udp文件传送丢包的问题
- UDP主要丢包原因及具体问题分析
- UDP主要丢包原因及具体问题分析
- 记录一个UDP收包丢包的问题