固件吧

 找回密码
 加入论坛

QQ登录

只需一步,快速开始

怎样赚取F币附件需要购买看这里新手论坛固件上传教程附件解压不了的解决方法
查看: 1392|回复: 3

路由器CPU使用率过高的解决方法

[复制链接]
发表于 2012-9-5 22:43:20 | 显示全部楼层 |阅读模式
第一步,show process cpu 如显示IP input process is using a lot of CPU resources,检查以下情况:

一、Fast switching

在大流量的外出接口上是否被disabled.可以用 show interfaces switching 命令察看接口流量.然后在接口上重新 Re-enable fast switching .记住 fast switching是配置在output 接口.

二、Fast switching on the same interface是否被disabled. 如一个接口配有多个网段(secondary addresses )并且在这些网段间流量很大时 器工作在process-switches方式 .这种情况下要在接口上enable ip route-cache same-interface.

三、不能被fast switched的包有:switching cache没有entry的包、目的地是器的包、需要协议转换的包、做了policy routing的包、X.25 encapsulation的包、Multilink PPP、压缩和加密的包目的地是router的包.

举例:1.路由更新信息(取决于路由协议)过快的更新值显示网络不稳定并增加了CPU utilization. 可以用show ip route检查路由表

2.其它人登录运行命令导致大量log输出

3.Spoof 攻击.用show ip traffic 命令确认,可发现大量到本地的包.

第二步,用 show interfaces 和show interfaces switching命令识别大量包进出的端口;一旦你确认进入端口后,打开 ip accounting on the outgoing interface看其特征.假如是攻击,源地址会不断变化但是目的地址不变.可以用Access list暂时解决此类问题 (最好在接近攻击源的设备上配置), 最终解决办法是停止攻击源。

一.需policy routing的包.在 Cisco IOS version 11.3以前, policy-routed packets不能被 fast switched. IOS version 11.3 以后答应 policy-routed packets to be fast switched.使用接口命令ip route-cache policy。

二.通过X.25封装的包,因为有 flow control on the second Open System Interconnectionlayer.7.Compressed traffic.如没有Compression Service Adapterin the router, compressed packets must be process-switched.8.Encrypted traffic. 如没有 Encryption Service Adapterin the router, encrypted packets must be process-switched.

三.大量的User Datagram Protocol流量. 可以用解决 spoof attack的步骤解决.

四.大量组播流穿越路由器。可以enable fast switching of multicast packets using the ip mroute-cache interface configuration command .

五.大量广播包。 Check the number of broadcast packets in the show interfaces command output.

六.路由器被 over-used 不能处理amount of traffic, 可以用 load among other routers 或者 考虑另购买high-end router.

七.路由器配置了IP NAT 并且有很多 DNS包穿越 router. UDP or TCP packets with source and/or destination port 53are always punted to process level by NAT.

无论是什么原因导致high CPU utilization in the IP Input process, 都可以用 debugging IP packets察看.因为 CPU utilization已经较高, debugging产生的许多信息只能通过 logging buffered而不能 Logging to a console。 debugging过程不要超过 3-5秒。假如发现可疑的源可以断掉其设备的连接或者用ACL过滤到目的地的包。
回复

使用道具 举报

发表于 2012-9-6 09:20:26 | 显示全部楼层
恩,我觉得值得学习啊,顶你
回复 支持 反对

使用道具 举报

topoer 该用户已被删除
发表于 2012-9-6 20:48:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2019-2-23 14:35:28 | 显示全部楼层
锄禾日当午,发帖真辛苦。谁知坛中餐,帖帖皆辛苦!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入论坛

本版积分规则

QQ|小黑屋|固件吧移动版|固件吧论坛 ( 浙ICP备11055615号-1 )

鲁公网安备 37172502371702号

GMT+8, 2025-6-23 10:08 , Processed in 0.072158 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

快速回复 返回顶部 返回列表