一、常见原因分析
1. 硬件/性能瓶颈
非对称处理能力:ACG设备上下行处理能力可能非对称
会话数限制:上传方向可能产生更多新建会话,达到会话限制
CPU/内存瓶颈:深度检测功能对上传流量消耗更多资源
2. 配置类问题
深度检测策略:对上传方向的特殊处理
应用识别限制:特定应用的上传限速策略
连接数限制:上传方向连接数限制
安全策略:防病毒、入侵防御等对上传流量的深度扫描
3. 网络架构问题
流量模型差异:上传以小包为主,性能消耗更大
非对称路由:来回路径不一致
MTU问题:上传方向存在MTU不匹配
二、系统性能检查命令
1. 查看实时性能
# 查看CPU和内存使用率
show system status
show cpu-usage
show memory-usage
# 查看会话统计
show session statistics
show session cpu-usage
show session table count
# 查看接口统计
show interface gigabitethernet 0/x
show interface statistics
2. 查看深度检测状态
# 查看策略命中情况
show policy-hit-rule statistics
show av statistics
show ips statistics
# 查看应用识别统计
show app-identification statistics
三、配置排查与优化
1. 检查会话限制配置
# 查看会话限制配置
show configuration session-limit
show configuration policy advanced
# 检查是否有会话限制策略
show running-config | include session
show running-config | include limit
常见限制位置:
用户/组会话限制
全局会话限制
基于应用/服务的会话限制
2. 检查QoS/限速策略
# 查看所有QoS策略
show configuration qos
show configuration traffic-policy
show configuration bandwidth
# 查看策略应用情况
show traffic-policy statistics
3. 检查安全策略配置
# 查看应用控制策略
show configuration application-control
show configuration bandwidth-management
# 查看防病毒配置
show configuration antivirus
show configuration file-filter
四、详细排查步骤
步骤1:基础性能测试
绕过测试:
# 在ACG上创建临时策略,允许测试IP不限速
policy
id 100
action pass
src-zone trust
dst-zone untrust
src-addr 192.168.1.100/32
service any
app any
session-limit disable
commit
测试不同协议的上传:
FTP上传大文件测试
HTTP上传测试
iPerf专业测试
# 在客户端执行
iperf3 -c 服务器IP -t 30 -P 8
iperf3 -c 服务器IP -t 30 -u -b 1000M
步骤2:关闭深度检测测试
# 临时关闭安全功能测试
diagnose debug flow
diagnose debug policy
# 创建不进行深度检测的测试策略
policy
id 200
action pass
src-zone trust
dst-zone untrust
src-addr 192.168.1.100/32
dst-addr any
service any
app any
av action block disable
ips action block disable
file-filter disable
data-filter disable
application-control disable
session-limit disable
commit
步骤3:检查硬件加速状态
# 查看硬件加速状态
show np status
show np6 session
show session hardware-offloading statistics
# 检查是否有流量没有硬件加速
show session | include software
五、配置文件检查重点
在配置文件中检查以下关键配置:
1. 全局配置检查
# 检查这些关键配置
show configuration | include -section "session"
show configuration | include -section "qos"
show configuration | include -section "traffic"
show configuration | include -section "bandwidth"
show configuration | include "limit"
show configuration | include "rate"
show configuration | include "threshold"
2. 安全策略检查
重点关注以下配置段:
application-control应用控制策略
bandwidth-management带宽管理策略
data-filter数据过滤策略
file-filter文件过滤策略
traffic-policy流量策略
六、特定场景排查
场景1:应用识别导致上传慢
# 检查应用识别策略
show configuration application-control policy
show configuration application-control signature
show application-identification statistics
# 临时禁用应用识别测试
policy
edit 策略ID
set application-control disable
end
场景2:文件上传检测
# 检查文件过滤策略
show configuration file-filter
show file-filter statistics
# 临时禁用文件过滤
policy
edit 策略ID
set file-filter disable
end
场景3:连接数限制
# 检查连接数设置
show session statistics
show session table count
show configuration session
# 查看连接数限制
show configuration | include "session.*limit"
show configuration | include "max-session"
七、性能优化建议
1. 临时优化配置
# 如果发现是会话数问题
system
set session-limit 1000000
set session-aging tcp 7200
set session-aging udp 300
set session-aging icmp 60
end
# 调整缓冲区
interface gigabitethernet 0/x
set tcp-mss 1350
set tx-queue length 2000
end
2. 深度检测优化
# 针对大流量服务器IP优化
policy
id 300
name "Server-No-Inspection"
src-addr 192.168.1.0/24
dst-addr 服务器IP/32
action pass
av disable
ips disable
file-filter disable
application-control disable
session-limit disable
end
3. 硬件加速优化
# 开启硬件加速
system
set hardware-offloading enable
set ip-fragment enable
set np-accelerate enable
end
八、诊断信息收集
如果问题依旧,请收集以下信息联系H3C技术支持:
# 收集诊断信息
show tech-support > tech.txt
show logging > log.txt
show session statistics detail > session.txt
show policy-hit-rule statistics > policy.txt
show performance 24hours > perf.txt
# 抓包分析
diagnose sniffer packet any "host 测试IP" 4
九、快速排查流程
第一步:show cpu-usage和 show memory-usage查看负载
第二步:show session statistics查看会话数
第三步:创建临时无限制策略测试
第四步:逐项关闭安全功能定位问题
第五步:检查硬件加速状态
最常见原因:应用识别或文件过滤对上传流量进行深度检测导致性能下降。建议先创建一条绕过所有深度检测的策略进行测试,然后逐步开启各功能定位具体原因。
如果以上排查后问题依旧,很可能是硬件性能瓶颈,建议联系H3C技术支持获取固件更新或硬件诊断。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论