本文档介绍如何在思科集成服务路由器 4000 (ISR4000) 系列路由器上实施性能许可证。
本文档没有任何特定的要求。
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
本文档介绍在Cisco IOS® XE软件上运行的思科集成服务路由器4000(ISR4000)系列路由器上实施性能许可证(也称为吞吐量许可证)。类似的概念适用于云服务路由器1000虚拟(CSR1000v)平台。
ISR4000系列路由器基于多核控制、数据和服务平面CPU,根据平台型号提供不同的性能级别。
性能许可证可提高设备可提供的最大吞吐量。
要确定吞吐量,请执行以下操作:
Router#show platform hardware qfp active datapath utilization
CPP 0: Subdev 0 5 secs 1 min 5 min 60 min
Input: Priority (pps) 0 0 0 0
(bps) 0 0 0 0
Non-Priority (pps) 54 59 142 295
(bps) 39728 51128 490672 1136960
Total (pps) 54 59 142 295
(bps) 39728 51128 490672 1136960
Output: Priority (pps) 0 0 0 0
(bps) 0 64 72 72
Non-Priority (pps) 14 6 100 255
(bps) 23200 14880 460904 1104712
Total (pps) 14 6 100 255
(bps) 23200 14944 460976 1104784 << consumed throughput
Processing: Load (pct) 0 0 0 0
为了解释性能许可证的概念,有必要说明ISR4000的各种型号在它们的数据平面架构方面的差异。
ISR4451最多可以使用九个数据包处理引擎(PPE)核心进行功能处理、加密和解密,包括一个核心用于输入和输出(I/O)处理。每个 PPE 核心一次只能处理一个数据包。

ISR4431与ISR4451具有相同的数据平面架构,不同之处在于它最多可以使用五个PPE核心进行功能处理、加密和解密。
ISR4351和ISR4331数据平面架构包括最多三个用于功能处理的PPE内核,以及用于I/O和加密处理的单个内核。

ISR4321和ISR4221有一个用于功能处理的PPE核心,另一个用于I/O和加密处理的核心。

在应用性能许可证前后各 ISR4000 系列路由器的差异:
| 无性能许可证 |
有性能许可证 |
|||
| 最大吞吐量 |
PPE 核心 |
最大吞吐量 |
PPE 核心 |
|
| 4221 |
35 Mbps |
1 x PPE + 1 x I/O |
75 Mbps |
无更改 |
| 4321 |
50 Mbps |
1 x PPE + 1 x I/O |
100 Mbps |
无更改 |
| 4331 |
100 Mbps |
2 x PPE + 1 x I/O |
300 Mbps |
3 x PPE + 1 x I/O |
| 4351 |
200 Mbps |
2 x PPE + 1 x I/O |
400 Mbps |
3 x PPE + 1 x I/O |
| 4431 |
500 Mbps |
3 x PPE + 1 x I/O |
1 Gbps |
5 x PPE + 1 x I/O |
| 4451 |
1 Gbps |
5 x PPE + 1 x I/O |
2 Gbps |
9 x PPE + 1 x I/O |
| 4461 |
1.5 Gbps |
8 x PPE + 1 x I/O |
3 Gbps |
15 x PPE + 1 x I/O |
在可以应用性能许可证之前,必须满足几个前提条件之一。这取决于许可证模式(智能或传统)。
在智能/虚拟账户上注册设备,并确保为该账户调配正确的性能许可证。
在全局配置模式下接受最终用户许可协议(EULA),许可证接受最终用户协议。接受EULA后,将激活演示或评估RTU性能许可证(评估期将在60天后到期)。
将许可证文件复制到路由器闪存中,并使用license install <flash:license-file>命令进行安装。
在全局配置模式下使用platform hardware throughput level命令激活性能许可证。
Router(config)#platform hardware throughput level 300000 % Please write mem and reload % The config will take effect on next reboot
在 ISR400 路由器上激活性能许可证时:
汇聚整形器功能在专用于 I/O 操作的数据平面 CPU 核心中实施。
在 I/O 数据平面核心上实施令牌桶系统(比特计数),以确定是否可以通过出口接口发送数据包。当发往外部接口的比特数超过许可证允许的比特数时,流量整形生效。

只要桶中有令牌,即可发送数据包:

为了说明通用概念,此伪配置使用模块化 QoS CLI (MQC):
policy-map Data PlaneExternalInterfaces
class GigabitEthernet0/0/0
bandwidth remaining ratio 1
service-policy <user defined>
class GigabitEthernet0/0/1
bandwidth remaining ratio 1
service-policy <user defined>
class Serial0/0/0
bandwidth remaining ratio 1
service-policy <user defined>
policy-map License
shape average license_level
service-policy Data PlaneExternalInterfaces
policy-map Root
class external_traffic
service-policy License
class control_plane_traffic
service-policy Punt
class recycled_traffic
service-policy Recycle
如果提供的速率超过许可带宽:
除非有优先级流量,否则在任何超订用期间,接口均共享带宽。
吞吐量限制指标:
Router#show platform hardware qfp active datapath utilization
CPP 0: Subdev 0 5 secs 1 min 5 min 60 min
Input: Priority (pps) 0 0 0 0
(bps) 0 0 0 0
Non-Priority (pps) 18027 17536 17493 17740
(bps) 101806904 184352 195272 204816
Total (pps) 18207 17536 17493 17740
(bps) 101806904 184352 195272 204816
Output: Priority (pps) 0 0 0 0
(bps) 0 0 0 0
Non-Priority (pps) 17916 17400 17361 17578
(bps) 99956512 198024 209024 218568
Total (pps) 17916 17400 17361 17578
(bps) 99956512 97592394 98694332 94902000
Processing: Load (pct) 7 7 7 7
Router#show platform hardware qfp active statistics drop ------------------------------------------------------------------------- Global Drop Stats Packets Octets ------------------------------------------------------------------------- TailDrop 4395 6634970
在show platform hardware qfp active feature lic-bw oversubscription的输出中,接口上的均匀分布缓冲区:
Router#show platform hardware qfp active feature lic-bw oversubscription
Interface: GigabitEthernet0/0/0, QFP interface: 7
Overall Traffic:
enqueued (bytes): 7188433, (packets): 75926 << signs of evenly distributed buffering on interfaces
tail_drops (bytes): 0, (packets): 0
total (bytes): 7188433, (packets): 75926
Interface: GigabitEthernet0/0/1, QFP interface: 8
Overall Traffic:
enqueued (bytes): 10492353355, (packets): 236972715 << signs of evenly distributed buffering on interfaces
tail_drops (bytes): 18809589, (packets): 56020 << drops on busy interfaces
total (bytes): 10511162944, (packets): 237028735
Interface: GigabitEthernet0/0/2, QFP interface: 9
Overall Traffic:
enqueued (bytes): 9544293, (packets): 57041 << signs of evenly distributed buffering on interfaces
tail_drops (bytes): 0, (packets): 0
total (bytes): 9544293, (packets): 57041
%BW_LICENSE-4-THROUGHPUT_MAX_LEVEL: F0: cpp_ha: Average throughput rate approached the licensed bandwidth of 100000000 bps during 1 sampling periods in the last 24 hours, sampling period is 300 seconds
警报阈值可配置。系统日志消息可用作许可带宽的指示器。要配置阈值级别和采样间隔,请使用set platform hardware throughput-monitor threshold [percentage] interval [seconds]命令。
要显示吞吐量监控器设置,请使用show platform hardware throughput-monitor parameters命令:
Router#show platform hardware throughput-monitor parameters Throughput monitor parameters Throughput monitor threshold: 90 percent Throughput monitor interval: 300 seconds Throughput monitor status: enabled
ISR4000 平台提供增强性能许可证,支持不受限制的思科快速转发 (CEF) 性能。设备必须使用Cisco IOS XE软件版本16.7.1或更高版本。激活加速许可证后,汇聚整形器将被禁用,因此,最大吞吐量取决于所使用的功能,而不再具有确定性。
安装:
安装许可证后,系统将自动启用提升性能,并将平台硬件吞吐量级别提升命令添加到配置中。
使用 show license 命令查看许可证状态。
Router#show license <output ommitted> Index 11 Feature: booster_performance Period left: Life time License Type: Permanent License State: Active, In Use License Count: Non-Counted License Priority: Medium
安装:
运行show license all命令查看许可证状态:
Router#show license all <output ommitted> License Usage ============== Boost Performance for ISR4431 (ISR_4431_BOOST): Description: Boost Performance for ISR4431 Count: 1 Version: 1.0 Status: AUTHORIZED
在Cisco IOS XE 17.3.2及更新软件版本中,没有向智能许可门户(智能/虚拟帐户)注册设备的概念。 未实施的许可证会在配置更改时激活,以后许可证使用情况会根据策略报告给思科。有关详细信息,请参阅使用智能许可策略。
此外,在Cisco IOS XE 17.3.2及以上版本中,提升性能许可证成为使用权(RTU)许可证。这意味着您无需事先授权即可激活此许可证。
安装:
| 版本 | 发布日期 | 备注 |
|---|---|---|
4.0 |
25-Jun-2026
|
更新的间距、拼写、语法、句子结构。 |
3.0 |
16-Aug-2023
|
已更新标题、法律免责声明、品牌推广要求、样式要求和格式。 |
2.0 |
13-Jul-2022
|
已编辑并重新发布。 |
1.0 |
05-Jul-2021
|
初始版本 |