netstat -s命令 引數 列出各種網路協議的統計資料,包括接收和傳送的資料包數量、錯誤資訊、連線狀態等

suv789發表於2024-03-27

netstat -s 命令 引數


netstat -s是一個用於顯示網路統計資訊的命令。它會列出各種網路協議的統計資料,包括接收和傳送的資料包數量、錯誤資訊、連線狀態等。透過檢視這些統計資訊,可以瞭解系統網路的執行情況,幫助診斷網路問題和最佳化網路效能。

這個命令的輸出可以幫助管理員監控網路活動,識別潛在的問題,比如網路擁塞、連線異常、資料包丟失等。透過分析這些統計資訊,可以及時採取措施來解決網路故障或改進網路效能。

使用netstat -s命令需要相應的許可權,通常需要以管理員身份或root使用者來執行。在處理網路問題時,這個命令可以提供有用的資訊,但需要正確解讀和分析結果,以便有效地解決網路相關的挑戰。


以下是輸出結果:

IPv4 Statistics

Packets Received = 20292
Received Header Errors = 0
Received Address Errors = 232
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 0
Received Packets Delivered = 20592
Output Requests = 18140
Routing Discards = 0
Discarded Output Packets = 0
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0

IPv6 Statistics

Packets Received = 26139
Received Header Errors = 0
Received Address Errors = 345
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 52
Received Packets Delivered = 25784
Output Requests = 21166
Routing Discards = 0
Discarded Output Packets = 0
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0

ICMPv4 Statistics

Received Sent
Messages 0 0
Errors 0 0
Destination Unreachable 0 0
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 0 0
Echo Replies 0 0
Echos 0 0
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
Router Solicitations 0 0
Router Advertisements 0 0

ICMPv6 Statistics

Received Sent
Messages 70 70
Errors 0 0
Destination Unreachable 0 17
Packet Too Big 0 0
Time Exceeded 0 0
Parameter Problems 0 0
Echos 15 0
Echo Replies 0 0
MLD Queries 0 0
MLD Reports 0 0
MLD Dones 0 0
Router Solicitations 0 1
Router Advertisements 7 0
Neighbor Solicitations 36 14
Neighbor Advertisements 12 38
Redirects 0 0
Router Renumberings 0 0

TCP Statistics for IPv4

Active Opens = 707
Passive Opens = 100
Failed Connection Attempts = 479
Reset Connections = 7
Current Connections = 10
Segments Received = 22119
Segments Sent = 19555
Segments Retransmitted = 39

TCP Statistics for IPv6

Active Opens = 168
Passive Opens = 0
Failed Connection Attempts = 4
Reset Connections = 21
Current Connections = 4
Segments Received = 24965
Segments Sent = 20129
Segments Retransmitted = 79

UDP Statistics for IPv4

Datagrams Received = 127
No Ports = 0
Receive Errors = 0
Datagrams Sent = 150

UDP Statistics for IPv6

Datagrams Received = 760
No Ports = 22
Receive Errors = 0
Datagrams Sent = 768

IPv4統計資訊

接收的資料包數 = 20292
接收的頭部錯誤 = 0
接收的地址錯誤 = 232
轉發的資料包 = 0
未知協議接收 = 0
被丟棄的接收資料包 = 0
已交付的接收資料包 = 20592
輸出請求 = 18140
路由丟棄 = 0
被丟棄的輸出資料包 = 0
輸出資料包無路由 = 0
需要重新組裝 = 0
重新組裝成功 = 0
重新組裝失敗 = 0
成功分片的資料包 = 0
分片失敗的資料包 = 0
建立的片段數 = 0

IPv6統計資訊

接收的資料包數 = 26139
接收的頭部錯誤 = 0
接收的地址錯誤 = 345
轉發的資料包 = 0
未知協議接收 = 0
被丟棄的接收資料包 = 52
已交付的接收資料包 = 25784
輸出請求 = 21166
路由丟棄 = 0
被丟棄的輸出資料包 = 0
輸出資料包無路由 = 0
需要重新組裝 = 0
重新組裝成功 = 0
重新組裝失敗 = 0
成功分片的資料包 = 0
分片失敗的資料包 = 0
建立的片段數 = 0

ICMPv4統計資訊

接收 傳送
訊息 0 0
錯誤 0 0
目的地不可達 0 0
超時 0 0
引數問題 0 0
源端抑制 0 0
重定向 0 0
回顯應答 0 0
回顯 0 0
時間戳 0 0
時間戳應答 0 0
地址掩碼 0 0
地址掩碼應答 0 0
路由器請求 0 0
路由器通告 0 0

ICMPv6統計資訊

接收 傳送
訊息 70 70
錯誤 0 0
目的地不可達 0 17
資料包太大 0 0
超時 0 0
引數問題 0 0
回顯 15 0
回顯應答 0 0
MLD查詢 0 0
MLD報告 0 0
MLD完成 0 0
路由器請求 0 1
路由器通告 7 0
鄰居請求 36 14
鄰居通告 12 38
重定向 0 0
路由器重新編號 0 0

IPv4的TCP統計資訊

主動開啟連線 = 707
被動開啟連線 = 100
連線嘗試失敗 = 479
重置連線 = 7
當前連線數 = 10
接收的資料段 = 22119
傳送的資料段 = 19555
重傳的資料段 = 39

IPv6的TCP統計資訊

主動開啟連線 = 168
被動開啟連線 = 0
連線嘗試失敗 = 4
重置連線 = 21
當前連線數 = 4
接收的資料段 = 24965
傳送的資料段 = 20129
重傳的資料段 = 79

IPv4的UDP統計資訊

接收的資料包數 = 127
無埠號資料包 = 0
接收錯誤 = 0
傳送的資料包數 = 150

IPv6的UDP統計資訊

接收的資料包數 = 760
無埠號資料包 = 22
接收錯誤 = 0
傳送的資料包數 = 768

相關文章