Skip to Content
Arista Warrior,第二版
book

Arista Warrior,第二版

by Gary A. Donahue
May 2025
Intermediate to advanced
572 pages
8h 39m
Chinese
O'Reilly Media, Inc.
Book available
Content preview from Arista Warrior,第二版

第23章 LANZ

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

如果你读过缓冲区一章(第 3 章),就会知道缓冲区既可以是好处,也可以是祸害,这取决于很多因素。当交换机的缓冲区出现问题时,由于通常没有详细的计数器来显示缓冲区的内容,因此很难将问题隔离开来。在路由器上运行服务质量 (QoS) 时,可以运行各种命令来显示缓冲区的状态,但这些缓冲区都是占用系统内存的软件结构。我这里说的缓冲区是硬件交换接口缓冲区。让我们深入了解一下,我会向你展示我的意思。

下面是Arista 7280R 上show interface 命令的输出结果。可以看到,没有提到缓冲区:

Arista-1#sho int e48
Ethernet48 is up, line protocol is up (connected)
  Hardware is Ethernet, address is 2899.3abe.a026
  Description: desc [ Arista-2 ]
  Internet address is 88.1.0.1/30
  Broadcast address is 255.255.255.255
  IP MTU 1500 bytes , BW 10000000 kbit
  Full-duplex, 10Gb/s, auto negotiation: off, uni-link: disabled
  Up 19 hours, 56 minutes, 8 seconds
  Loopback Mode : None
  11 link status changes since last clear
  Last clearing of "show interface" counters 13 days, 20:40:55 ago
  5 minutes input rate 55 bps (0.0% with framing overhead), 0 packets/sec
  5 minutes output rate 60 bps (0.0% with framing overhead), 0 packets/sec
     74213421 packets input, 110899750528 bytes
     Received 2 broadcasts, 8437 multicast
     0 runts, 0 giants
     0 input errors, 0 CRC, 0 alignment, 0 symbol, 0 input discards
     0 PAUSE input
     76733308 packets output, 114571891285 bytes
     Sent 7254 broadcasts, 97979 multicast
     0 output errors, 0 collisions
     0 late collision, 0 deferred, 4372620 output discards
     0 PAUSE output

为什么没有提到缓冲区?我没有编写代码,但我可以猜测接口缓冲区的状态会在微秒级发生变化,因此从开始移动按 Enter 键到按完之间,缓冲区的状态很可能发生了变化,所以show interface 命令输出的任何信息在显示时都已经过时了。

可视化微爆

让我们从流量使用模式来看看微爆发是什么样的。传统的网络接口监控方式是使用简单网络管理协议(SNMP)工具,如 Solarwinds、MRTG、HP OpenView ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition

A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition

Mark G. Sobell

Publisher Resources

ISBN: 9798341658967