[Huawei] display cpu-usage CPU Usage Stat. Cycle: 10 (Second) CPU Usage Stat. Time : 2000-04-15 00:11:37 Control Plane //控制平面 CPU Usage: 13.2% Max: 100% User: 6.9% System: 6.3% SoftIrq: 0.0% HardIrq: 0.0% Idle: 86.8% CPU utilization for ten seconds: 13.2% one minute: 13.0% five minutes: 13.0% . Data Plane //数据平面 CPU Usage: 0.0% Max: 4.7% CPU utilization for ten seconds: 0.0% one minute: 0.0% five minutes: 0.0% . PID ProcessName CPU% CoreIndex Runtime State 276 cap32 0.0% CPU1 113557738 R 274 main_task 12.9% CPU0 31888522 S
如果CPU占用率达到80%以上,说明现网业务已经趋近于瓶颈,可通过display cpu-defend statistics命令进一步排查,具体可参考故障启示录《CPU使用率高》进行排查。
如果网络中没有异常攻击或者环路导致的流量,那么就需要考虑替换为更高性能的设备。
[Huawei] display interface brief PHY: Physical *down: administratively down (l): loopback (s): spoofing (b): BFD down ^down: standby (e): ETHOAM down InUti/OutUti: input utility/output utility Interface PHY Protocol InUti OutUti inErrors outErrors Cellular0/0/0 down down 0% 0% 0 0 Cellular0/0/1 down down 0% 0% 0 0 Dialer1 up up(s) 0% 0% 0 0 Ethernet0/0/0 up up 0% 0.01% 0 0 Ethernet0/0/1 up up 0.01% 0.01% 0 0 Ethernet0/0/2 down down 0% 0% 0 0 Ethernet0/0/3 down down 0% 0% 0 0 Ethernet0/0/4 down down 0% 0% 0 0
检查接口利用率是否达到峰值,接口统计只是一个平均值,仅作参考。(InUti和OutUti分别表示最近300秒内接口入方向和出方向平均值)
[Huawei] display interface GigabitEthernet 0/0/0 GigabitEthernet0/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2016-05-23 07:24:10 Description:HUAWEI, AR Series, GigabitEthernet0/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 …… Port Mode: FORCE COPPER Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO, Clock : - Last 300 seconds input rate 1680 bits/sec, 2 packets/sec Last 300 seconds output rate 432 bits/sec, 0 packets/sec Input peak rate 119136 bits/sec,Record time: 2016-05-28 09:51:12 Output peak rate 1052792 bits/sec,Record time: 2016-05-24 01:04:11
[Huawei] system-view [Huawei] interface GigabitEthernet 0/0/1 //进入内网口 [Huawei-GigabitEthernet0/0/1] qos car inbound source-ip-address range 192.168.1.10 to 192.168.1.200 per-address cir 2000 //配置入方向源地址为192.168.1.10到192.168.1.200之间的所有地址各自限速2000kbit/s,限制上传速率 [Huawei-GigabitEthernet0/0/1] qos car outbound destination-ip-address range 192.168.1.10 to 192.168.1.200 per-address cir 2000 //配置出方向目的地址为192.168.1.10到192.168.1.200之间的所有地址各自限速2000kbit/s,限制下载速率 [Huawei-GigabitEthernet0/0/1] quit