此条款描述如何排除基本的最优化故障。
基本的WAAS最优化包括TCP流最优化(TFO),数据冗余清除(DRE)和不变Lempel-Ziv (LZ)压缩。
TCP连接、他们的状态和处理的编号能给予WAAS系统的健康的征兆在一个特定位置。一个健康系统将表示很大数量的连接,与通常结束的这些的显着大部分。detail命令show statistics的tfo提供连接的容量、状况和处理的征兆一个特定的WAAS设备和其它设备之间的在网络。
通过使用show statistics tfo detail命令如下,您能查看全局TFO统计数据:
WAE# show statistics tfo detail Total number of connections : 2852 No. of active connections : 3 <-----Active connections No. of pending (to be accepted) connections : 0 No. of bypass connections : 711 No. of normal closed conns : 2702 No. of reset connections : 147 Socket write failure : 0 Socket read failure : 0 WAN socket close while waiting to write : 0 AO socket close while waiting to write : 2 WAN socket error close while waiting to read : 0 AO socket error close while waiting to read : 64 DRE decode failure : 0 DRE encode failure : 0 Connection init failure : 0 WAN socket unexpected close while waiting to read : 32 Exceeded maximum number of supported connections : 0 Buffer allocation or manipulation failed : 0 Peer received reset from end host : 49 DRE connection state out of sync : 0 Memory allocation failed for buffer heads : 0 Unoptimized packet received on optimized side : 0 Data buffer usages: Used size: 0 B, B-size: 0 B, B-num: 0 Cloned size: 0 B, B-size: 0 B, B-num: 0 Buffer Control: Encode size: 0 B, slow: 0, stop: 0 Decode size: 0 B, slow: 0, stop: 0 Scheduler: Queue Size: IO: 0, Semi-IO: 0, Non-IO: 0 Total Jobs: IO: 1151608, Semi-IO: 5511278, Non-IO: 3690931 Policy Engine Statistics ------------------------- Session timeouts: 0, Total timeouts: 0 Last keepalive received 00.5 Secs ago Last registration occurred 15:00:17:46.0 Days:Hours:Mins:Secs ago Hits: 7766, Update Released: 1088 Active Connections: 3, Completed Connections: 7183 Drops: 0 Rejected Connection Counts Due To: (Total: 0) Not Registered : 0, Keepalive Timeout : 0 No License : 0, Load Level : 0 Connection Limit : 0, Rate Limit : 0 <-----Connection limit overload Minimum TFO : 0, Resource Manager : 0 Global Config : 0, TFO Overload : 0 Server-Side : 0, DM Deny : 0 No DM Accept : 0 . . .
不激活连接字段报告当前被最优化连接的数量。
在输出的策略引擎统计数据部分,被拒绝的连接计数部分显示多种原因为什么连接被拒绝了。连接限制计数器报告连接被拒绝了的次数,因为被最优化的连接的最大数量被超出了。如果看到大数字这里,您应该调查超载状态。欲知更多信息,请参阅条款排除超载状态故障。
另外,从其他AOs增加的连接的TFO最优化,因为他们不能优化数据流由通用的AO处理,在排除通用的AO故障的条款上被覆盖。
您能查看TFO连接统计通过使用connection命令的show statistics。关于在使用此命令的详细资料,请参阅部分“检查被最优化的TCP连接”在排除超载状态条款故障上。
当应用程序加速度预计,但是没有被观察时,请验证适当的最优化适用于通信流,并且DRE高速缓冲存储器适当地减少优化的数据流的大小。
策略DRE和LZ最优化的引擎映射包括以下:
多种情况可能导致DRE和LZ适用于连接,即使配置:
Note:总计上述条件, connection命令的show statistics将报告“TDL的”加速度这是协商的策略的连接的。查看相当数量DRE或LZ旁路数据流将分辨您DRE或LZ最优化是否实际上适用。请使用show statistics连接conn-id命令,如所描述以后,并且查看DRE编码编号发现DRE或LZ比率是否在0%附近,并且大多数数据流被绕过。前三个条件将由报告“编码旁路由于”字段,并且前三个条件起因于数据流数据模式和占在报告的DRE和LZ比率。
您能查看特定连接的统计数据能确定通过使用show statistics连接conn-id命令,什么基本的最优化配置有,协商对等体,并且适用。首先您将需要确定特定的连接的连接ID通过使用connection命令的show statistics,如下:
WAE#show stat conn Current Active Optimized Flows: 1 Current Active Optimized TCP Plus Flows: 0 Current Active Optimized TCP Only Flows: 1 Current Active Optimized TCP Preposition Flows: 0 Current Active Auto-Discovery Flows: 0 Current Reserved Flows: 10 Current Active Pass-Through Flows: 0 Historical Flows: 375 D:DRE,L:LZ,T:TCP Optimization RR:Total Reduction Ratio A:AOIM,C:CIFS,E:EPM,G:GENERIC,H:HTTP,M:MAPI,N:NFS,S:SSL,V:VIDEO ConnID Source IP:Port Dest IP:Port PeerID Accel RR 343 10.10.10.10:3300 10.10.100.100:80 00:14:5e:84:24:5f T 00.0% <------
您将查找每连接的连接ID列出在输出结束时。要查看特定连接的统计数据,请使用show statistics连接conn-id命令,如下:
WAE# sh stat connection conn-id 343 Connection Id: 343 Peer Id: 00:14:5e:84:24:5f Connection Type: EXTERNAL CLIENT Start Time: Tue Jul 14 16:00:30 2009 Source IP Address: 10.10.10.10 Source Port Number: 3300 Destination IP Address: 10.10.100.100 Destination Port Number: 80 Application Name: Web <-----Application name Classifier Name: HTTP <-----Classifier name Map Name: basic Directed Mode: FALSE Preposition Flow: FALSE Policy Details: Configured: TCP_OPTIMIZE + DRE + LZ <-----Configured policy Derived: TCP_OPTIMIZE + DRE + LZ Peer: TCP_OPTIMIZE + DRE + LZ Negotiated: TCP_OPTIMIZE + DRE + LZ <-----Policy negotiated with peer Applied: TCP_OPTIMIZE + DRE + LZ <-----Applied policy . . .
应用程序名称和分类符名称字段告诉您应用程序和分类符被运用于此连接。
最优化策略在策略细节部分列出。如果设定及适用的策略不配比,意味着您配置了此种连接的一个策略,但是一个不同的策略适用。这能起因于发生故障的对等体,不正确配置或者超载了。检查对等体WAE和其配置。
输出的以下部分显示DRE编码/解码有关的统计数据包括通讯数量,多少有适用的DRE,适用的LZ或者绕过了DRE和LZ :
. . . DRE: 353 Conn-ID: 353 10.10.10.10:3304 -- 10.10.100.100:139 Peer No: 0 Status: Active ------------------------------------------------------------------------------ Open at 07/14/2009 16:04:30, Still active Encode: Overall: msg: 178, in: 36520 B, out: 8142 B, ratio: 77.71% <-----Overall compression DRE: msg: 1, in: 356 B, out: 379 B, ratio: 0.00% <-----DRE compression ratio DRE Bypass: msg: 178, in: 36164 B <-----DRE bypass LZ: msg: 178, in: 37869 B, out: 8142 B, ratio: 78.50% <-----LZ compression ratio LZ Bypass: msg: 0, in: 0 B <-----LZ bypass Avg latency: 0.335 ms Delayed msg: 0 <-----Avg latency Encode th-put: 598 KB/s <-----In 4.3.3 and earlier only Message size distribution: 0-1K=0% 1K-5K=0% 5K-15K=0% 15K-25K=0% 25K-40K=0% >40K=0% <-----In 4.3.3 and earlier only Decode: Overall: msg: 14448, in: 5511 KB, out: 420 MB, ratio: 98.72% <-----Overall compression DRE: msg: 14372, in: 5344 KB, out: 419 MB, ratio: 98.76% <-----DRE compression ratio DRE Bypass: msg: 14548, in: 882 KB <-----DRE bypass LZ: msg: 14369, in: 4891 KB, out: 5691 KB, ratio: 14.07% <-----LZ compression ratio LZ Bypass: msg: 79, in: 620 KB <-----LZ bypass Avg latency: 4.291 ms <-----Avg latency Decode th-put: 6946 KB/s <-----In 4.3.3 and earlier only Message size distribution: 0-1K=4% 1K-5K=12% 5K-15K=18% 15K-25K=9% 25K-40K=13% >40K=40% <-----Output from here in 4.3.3 and earlier only . . .
以下统计数据用编码和解码的上述示例突出显示:
如果看到很多旁路数据流, DRE压缩速率比预期下。它可能归结于加密的数据流、小的消息或者uncompressible数据。为做进一步的故障排除Consider接触的TAC帮助。
如果看到很多LZ旁路数据流,这可能归结于很多加密的数据流,通常不是可压缩的。
平均时延编号可以是有用的为调试吞吐量问题。根据平台,编码和解码平均时延典型地在女士单个位。如果用户体验低吞吐量和一个或这两个编号更高,指示关于编码或解码的一个问题,通常在与高延迟的边。
查看DRE统计数据例如最旧的可用的数据,高速缓存大小,使用的高速缓冲存储器的百分比,散列表RAM使用,等通过使用detail命令show statistics的dre可能是有用的,如下:
WAE# sh stat dre detail Cache: Status: Usable, Oldest Data (age): 10h <-----Cache age Total usable disk size: 311295 MB, Used: 0.32% <-----Percent cache used Hash table RAM size: 1204 MB, Used: 0.00% <-----Output from here is in 4.3.3 and earlier only . . .
如果看不到重大的DRE压缩,可能这是因为DRE高速缓冲存储器没有带有足够的数据。检查高速缓冲存储器使用周期是否是短的,并且少于使用高速缓冲存储器的100%,将指示此情况。当高速缓冲存储器用更多数据,填装压缩速率应该改善。如果使用100%高速缓冲存储器,并且高速缓冲存储器使用周期是短的,表明WAE可能比一般小和不能处理数据流容量。
如果看不到重大的DRE压缩,请查看在命令输出的以下部分的Nack/R-tx计数器:
Connection details: Chunks: encoded 398832, decoded 269475, anchor(forced) 43917(9407) <-----In 4.3.3 and earlier only Total number of processed messges: 28229 <-----In 4.3.3 and earlier only num_used_block per msg: 0.053597 <-----In 4.3.3 and earlier only Ack: msg 18088, size 92509 B <-----In 4.3.3 and earlier only Encode bypass due to: <-----Encode bypass reasons remote cache initialization: messages: 1, size: 120 B last partial chunk: chunks: 482, size: 97011 B skipped frame header: messages: 5692, size: 703 KB Nacks: total 0 <-----Nacks R-tx: total 0 <-----Retransmits Encode LZ latency: 0.133 ms per msg Decode LZ latency: 0.096 ms per msg . . .
Nacks和R-tx计数器应该通常是低的相对数据流容量。例如,大约1每原始(unoptimized)数据流100 MB。如果看到显着更高的计数,它可能指示DRE高速缓冲存储器同步问题。请使用清楚的高速缓冲存储器dre命令清除在所有设备的DRE高速缓冲存储器或者请与TAC联系。
编码旁路原因抵抗报告字节数被绕过的由于多种原因。这可帮助您确定什么导致旁路数据流(除一个unoptimizable数据模式之外)。
识别连接和有效对等体WAEs和查看对等体统计数据是有时有用的,您能执行用show statistics对等体dre命令如下:
WAE# sh stat peer dre Current number of connected peers: 1 Current number of active peers: 1 Current number of degrade peers: 0 Maximum number of connected peers: 1 Maximum number of active peers: 1 Maximum number of degraded peers: 0 Active peer details: Peer-No : 0 Context: 65027 Peer-ID : 00:14:5e:95:4a:b5 Hostname: wae7.example.com <-----Peer hostname ------------------------------------------------------------------------------ Cache: Used disk: 544 MB, Age: 14d23h <-----Peer cache details in 4.3.3 and earlier only Cache: Used disk: 544 MB <-----Peer cache details in 4.4.1 and later only Peer version: 0.4 <----- Ack-queue size: 38867 KB | Buffer surge control: |<---In 4.3.3 and earlier only Delay: avg-size 0 B, conn: 0, flush: 0 | Agg-ft: avg-size 20902 B, conn: 388, flush: 0 | remote low-buff: 0, received flush: 0 <----- Connections: Total (cumulative): 3226861, Active: 597 Concurrent Connections (Last 2 min): max 593, avg 575 . . .
此命令的其他输出显示编码和解码统计数据类似于单个连接。