免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5434 | 回复: 0
打印 上一主题 下一主题

[网络配置] CentOS5 ifconfig dropped 丢很多包 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-20 23:06 |只看该作者 |倒序浏览
本帖最后由 tb100453 于 2012-06-20 23:12 编辑

今天发现服务器很多丢包,大家能告诉我从哪里下手,排查问题;
fconfig: eth0      Link encap:Ethernet  HWaddr 00:1E:0B:CA:96:C4  
          inet addr.x.x.x  Bcast.x.255.255  Mask.x.0.0
          inet6 addr: fe80::21e:bff:feca:96c4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128509717 errors:0 dropped:1305883 overruns:0 frame:0
          TX packets:396312243 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11227769354 (10.4 GiB)  TX bytes:590972612221 (550.3 GiB)
          Interrupt:169 Memory:f8000000-f8012800
详细信息如下:
ifconfig:
  1. eth0      Link encap:Ethernet  HWaddr 00:1E:0B:CA:96:C4  
  2.           inet addr:x.x.x.x  Bcast:x.x.255.255  Mask:x.x.0.0
  3.           inet6 addr: fe80::21e:bff:feca:96c4/64 Scope:Link
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:128509717 errors:0 dropped:1305883 overruns:0 frame:0
  6.           TX packets:396312243 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:11227769354 (10.4 GiB)  TX bytes:590972612221 (550.3 GiB)
  9.           Interrupt:169 Memory:f8000000-f8012800
  10. eth1      Link encap:Ethernet  HWaddr 00:1E:0B:CA:96:C2  
  11.           inet addr:x.x.x.x  Bcast:x.x.x.x  Mask:x.x.x.x
  12.           inet6 addr: fe80::21e:bff:feca:96c2/64 Scope:Link
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           RX packets:5601651027 errors:0 dropped:39878370 overruns:0 frame:0
  15.           TX packets:1359815660 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:1000
  17.           RX bytes:8345071401778 (7.5 TiB)  TX bytes:1335273375167 (1.2 TiB)
  18.           Interrupt:177 Memory:fa000000-fa012800
复制代码
ethtool 查看结果如下:

  1. # ethtool -i eth0
  2. driver: bnx2
  3. version: 1.9.3
  4. firmware-version: 1.9.6
  5. bus-info: 0000:03:00.0
复制代码

  1. # ethtool eth0
  2. Settings for eth0:
  3.         Supported ports: [ TP ]
  4.         Supported link modes:   10baseT/Half 10baseT/Full
  5.                                 100baseT/Half 100baseT/Full
  6.                                 1000baseT/Full
  7.         Supports auto-negotiation: Yes
  8.         Advertised link modes:  10baseT/Half 10baseT/Full
  9.                                 100baseT/Half 100baseT/Full
  10.                                 1000baseT/Full
  11.         Advertised auto-negotiation: Yes
  12.         Speed: 1000Mb/s
  13.         Duplex: Full
  14.         Port: Twisted Pair
  15.         PHYAD: 1
  16.         Transceiver: internal
  17.         Auto-negotiation: on
  18.         Supports Wake-on: g
  19.         Wake-on: g
  20.         Link detected: yes
复制代码
netstat查看的结果如下:

  1. # netstat -i
  2. Kernel Interface table
  3. Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
  4. eth0       1500   0 132308207      0 1343494      0 407782672      0      0      0 BMRU
  5. eth0:0     1500   0      - no statistics available -                            BMRU
  6. eth1       1500   0 5602167786      0 39881197      0 1359900826      0      0      0 BMRU
  7. lo        16436   0 98360681      0      0      0 98360681      0      0      0 LRU
  8. # netstat -s
  9. Ip:
  10.     2463666205 total packets received
  11.     20 with invalid headers
  12.     2582425346 forwarded
  13.     0 incoming packets discarded
  14.     4137455826 incoming packets delivered
  15.     423491528 requests sent out
  16.     7 outgoing packets dropped
  17.     9345 reassemblies required
  18.     4265 packets reassembled ok
  19. Icmp:
  20.     353608 ICMP messages received
  21.     4174 input ICMP message failed.
  22.     ICMP input histogram:
  23.         destination unreachable: 130569
  24.         timeout in transit: 21
  25.         source quenches: 84
  26.         redirects: 9274
  27.         echo requests: 183073
  28.         echo replies: 30587
  29.     693106 ICMP messages sent
  30.     0 ICMP messages failed
  31.     ICMP output histogram:
  32.         destination unreachable: 440342
  33.         time exceeded: 20
  34.         redirect: 67
  35.         echo request: 69605
  36.         echo replies: 183072
  37. IcmpMsg:
  38.         InType0: 30587
  39.         InType3: 130569
  40.         InType4: 84
  41.         InType5: 9274
  42.         InType8: 183073
  43.         InType11: 21
  44.         OutType0: 183072
  45.         OutType3: 440342
  46.         OutType5: 67
  47.         OutType8: 69605
  48.         OutType11: 20
  49. Tcp:
  50.     9015583 active connections openings
  51.     142644674 passive connection openings
  52.     8094060 failed connection attempts
  53.     573801 connection resets received
  54.     476 connections established
  55.     1828666379 segments received
  56.     1124924916 segments send out
  57.     120601732 segments retransmited
  58.     0 bad segments received.
  59.     9972936 resets sent
  60. Udp:
  61.     2220775725 packets received
  62.     383058 packets to unknown port received.
  63.     2491484 packet receive errors
  64.     893184111 packets sent
  65. TcpExt:
  66.     78488 invalid SYN cookies received
  67.     37 resets received for embryonic SYN_RECV sockets
  68.     1098 packets pruned from receive queue because of socket buffer overrun
  69.     69 ICMP packets dropped because they were out-of-window
  70.     14082951 TCP sockets finished time wait in fast timer
  71.     2340 time wait sockets recycled by time stamp
  72.     1914 packets rejects in established connections because of timestamp
  73.     24160711 delayed acks sent
  74.     1170320 delayed acks further delayed because of locked socket
  75.     Quick ack mode was activated 75010 times
  76.     8943 times the listen queue of a socket overflowed
  77.     8943 SYNs to LISTEN sockets ignored
  78.     1283351 packets directly queued to recvmsg prequeue.
  79.     56209219 packets directly received from backlog
  80.     1699235894 packets directly received from prequeue
  81.     1122063487 packets header predicted
  82.     1194832 packets header predicted and directly queued to user
  83.     3586267895 acknowledgments not containing data received
  84.     574348960 predicted acknowledgments
  85.     20790 times recovered from packet loss due to fast retransmit
  86.     2152857 times recovered from packet loss due to SACK data
  87.     5 bad SACKs received
  88.     Detected reordering 17256 times using FACK
  89.     Detected reordering 44515 times using SACK
  90.     Detected reordering 1154 times using time stamp
  91.     1876 congestion windows fully recovered
  92.     29078 congestion windows partially recovered using Hoe heuristic
  93.     TCPDSACKUndo: 2049
  94.     10000 congestion windows recovered after partial ack
  95.     85556504 TCP data loss events
  96.     TCPLostRetransmit: 35
  97.     138 timeouts after reno fast retransmit
  98.     45276 timeouts after SACK recovery
  99.     14865 timeouts in loss state
  100.     65496127 fast retransmits
  101.     10728726 forward retransmits
  102.     43343580 retransmits in slow start
  103.     899202 other TCP timeouts
  104.     TCPRenoRecoveryFail: 20194
  105.     30150 sack retransmits failed
  106.     60 times receiver scheduled too late for direct processing
  107.     278275 packets collapsed in receive queue due to low socket buffer
  108.     74973 DSACKs sent for old packets
  109.     30 DSACKs sent for out of order packets
  110.     715566 DSACKs received
  111.     6564 DSACKs for out of order packets received
  112.     495140 connections reset due to unexpected data
  113.     133063 connections reset due to early user close
  114.     1383 connections aborted due to timeout
  115. IpExt:
  116.     InNoRoutes: 16
  117.     InMcastPkts: 1812093653
  118.     OutMcastPkts: 796543502
  119.     InBcastPkts: 97249998
  120.     OutBcastPkts: 10002759
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP