|
|
楼主 |
发表于 2020-6-4 15:51:40
|
显示全部楼层
此外,linux 系统也提供了各个网络协议的丢包信息,可以使用 netstat -s 命令查看,加上 --udp 可以只看 UDP 相关的报文数据:
9 Y; C& e' J4 ?7 r- l$ C# E" Q3 m9 e6 ]& N# o7 \3 x$ S7 T0 b
[root@holodesk02 GOD]# netstat -s -u5 w, a7 a. e2 A0 V1 Z9 ~! o7 T
IcmpMsg:
; m- p. D" {& Q& O InType0: 3
I; v. w0 g4 ~' t InType3: 1719356
M$ x4 G+ O6 ]$ Z. d InType8: 13
6 @& Y# C5 @7 Y2 ] InType11: 59
9 b! K* `2 H+ x% c OutType0: 13$ y' S# A, \2 {& Z
OutType3: 1737641% V! x$ X% r7 m( q0 N. v
OutType8: 10: d% ^3 ?2 i: n- f* Z. P
OutType11: 263
* s8 h8 b V0 v+ r8 _Udp:
$ M* ] R) p& M7 | 517488890 packets received0 D5 C7 K# N$ p% j/ i# ^7 V5 N* X
2487375 packets to unknown port received.. l" o6 U' K$ _
47533568 packet receive errors
8 l& a; Y5 Q. l8 i9 r- c" [ 147264581 packets sent# [7 z9 O- N; V7 I
12851135 receive buffer errors* m% w( {! G! T. h1 m
0 send buffer errors
, X1 h& |( y/ w- z: s0 fUdpLite:. u* @$ T' d8 K) S8 g
IpExt:
! M2 Y' P1 R: n# M) | OutMcastPkts: 696
' G! K \& E- a InBcastPkts: 2373968
2 t3 g x t2 p InOctets: 4954097451540: a+ W! D- h1 c. _* l, k
OutOctets: 5538322535160
4 m' h1 o5 `/ q# B' r8 ` OutMcastOctets: 79632- n& S: G- [9 L+ ]' O
InBcastOctets: 934783053* L8 N3 }/ Q, v. t: R0 a
InNoECTPkts: 5584838675 |
|