WEB开发网
开发学院操作系统Linux/Unix UNIX 网络性能分析 阅读

UNIX 网络性能分析

 2009-11-02 00:00:00 来源:WEB开发网   
核心提示: 以 RX 和 TX 开头的行很重要,它们提供关于发送和接收的数据包的信息,UNIX 网络性能分析(7),packets 值是传输的数据包的数量,errors、dropped 和 overruns 值表示出现某种错误的数据包的数量,此工具提供与协议相关的统计数据,比如 TCP-IP 和 UDP 数

以 RX 和 TX 开头的行很重要,它们提供关于发送和接收的数据包的信息。packets 值是传输的数据包的数量。errors、dropped 和 overruns 值表示出现某种错误的数据包的数量。如果与发送的数据包相比丢失的数据包数量比较高,可能说明网络忙。

在所有平台上,还可以使用 netstat 工具获得更详细的统计信息。在 Linux 上,此工具提供与协议相关的统计数据,比如 TCP-IP 和 UDP 数据包的传输情况。其中也包含一些基本统计数据(见清单 8)。


清单 8. 使用 netstat
$ netstat -s 
Ip: 
  8437387 total packets received 
  1 with invalid addresses 
  0 forwarded 
  0 incoming packets discarded 
  8437383 incoming packets delivered 
  6820934 requests sent out 
  6 reassemblies required 
  3 packets reassembled ok 
Icmp: 
  502 ICMP messages received 
  3 input ICMP message failed. 
  ICMP input histogram: 
    destination unreachable: 410 
    echo requests: 82 
    echo replies: 10 
  1406 ICMP messages sent 
  0 ICMP messages failed 
  ICMP output histogram: 
    destination unreachable: 1313 
    echo request: 11 
    echo replies: 82 
IcmpMsg: 
    InType0: 10 
    InType3: 410 
    InType8: 82 
    OutType0: 82 
    OutType3: 1313 
    OutType8: 11 
Tcp: 
  8361 active connections openings 
  6846 passive connection openings 
  1 failed connection attempts 
  164 connection resets received 
  33 connections established 
  8305361 segments received 
  6688553 segments send out 
  640 segments retransmitted 
  0 bad segments received. 
  676 resets sent 
Udp: 
  126083 packets received 
  1294 packets to unknown port received. 
  0 packet receive errors 
  130335 packets sent 
UdpLite: 
TcpExt: 
  5 packets pruned from receive queue because of socket buffer overrun 
  6792 TCP sockets finished time wait in fast timer 
  5681 delayed acks sent 
  Quick ack mode was activated 11637 times 
  150861 packets directly queued to recvmsg prequeue. 
  74333 bytes directly in process context from backlog 
  9141882 bytes directly received in process context from prequeue 
  3608274 packet headers predicted 
  42627 packets header predicted and directly queued to user 
  77132 acknowledgments not containing data payload received 
  374105 predicted acknowledgments 
  2 times recovered from packet loss by selective acknowledgements 
  77 congestion windows recovered without slow start after partial ack 
  1 TCP data loss events 
  17 timeouts after SACK recovery 
  2 fast retransmits 
  8 retransmits in slow start 
  236 other TCP timeouts 
  1453 packets collapsed in receive queue due to low socket buffer 
  11634 DSACKs sent for old packets 
  2 DSACKs sent for out of order packets 
  2 DSACKs received 
  77 connections reset due to unexpected data 
  50 connections aborted due to timeout 
  TCPDSACKIgnoredNoUndo: 1 
  TCPSackShiftFallback: 23 
IpExt: 
  InBcastPkts: 4126 

上一页  2 3 4 5 6 7 8 9 10  下一页

Tags:UNIX 网络 性能分析

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接