当数据包输入增加时,为什么“show interface”显示“Last input never”?

网络工程 转变 cisco-6500
2021-07-10 16:06:21

为什么当我执行show interface命令时我看到Last input总是显示never

FastEthernet1/31 is up, line protocol is up (connected)
  Hardware is C6k 100Mb 802.3, address is 000d.bd5a.e94e (bia 000d.bd5a.e94e)
  Description: Server
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Full-duplex, 100Mb/s
  input flow-control is off, output flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  **Last input never**, output 00:03:19, output hang never
  Last clearing of "show interface" counters 1y3w
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 2000 bits/sec, 4 packets/sec
  5 minute output rate 13000 bits/sec, 20 packets/sec
     148174387 packets input, 16331478383 bytes, 0 no buffer
     Received 465 broadcasts (0 multicast)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 input packets with dribble condition detected
     798328682 packets output, 102549789248 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 PAUSE output
     0 output buffer failures, 0 output buffers swapped out

如您所见,几分钟后我运行该命令时,其他计数器已增加。

FastEthernet1/31 is up, line protocol is up (connected)
  Last input never, output 00:01:39, output hang never
  5 minute input rate 2000 bits/sec, 4 packets/sec
  5 minute output rate 14000 bits/sec, 20 packets/sec
     148176042 packets input, 16331609502 bytes, 0 no buffer
     798337129 packets output, 102550523914 bytes, 0 underruns
2个回答

有几个接口计数器不像以前那样工作了。有时这是因为机箱/路由器具有“快速”切换模式(CEF 或其他),并且该特定“存储桶”永远不会受到影响。另一个原因可能是该特定计数器仅适用于 L3 模式而不是 L2 模式。这种东西很常见,不幸的是在 cisco 产品上,特别是在 6500 上,它有大量的遗留代码/架构。

大多数交换机流量现在完全在硬件(即 ASIC)中处理,因为这是最快/最好的方式。最后的输入和输出字段仅在存在软件或进程切换的流量时更新。

在某些平台上,您可以启用某些功能,这些功能会导致在软件中处理流量,从而降低交换机性能。这些字段仍然存在很好,因此您可以看到流量何时没有被硬件切换。