网络应用服务 : 思科应用和内容网络系统 (ACNS) 软件

使用缓存时确定保存

2016 年 10 月 27 日 - 机器翻译
其他版本: PDFpdf | 英语 (2015 年 8 月 22 日) | 反馈


目录


简介

本文显示缓存储蓄使用工具和可以使用的命令在缓存引擎、内容引擎和路由器,如何可以计算。

开始使用前

规则

有关文档规则的详细信息,请参阅 Cisco 技术提示规则

先决条件

本文档的读者应具备以下方面的知识:

  • 透明和代理缓存

  • WEB缓存通信协议(WCCP)

  • Cisco IOS

  • 超文本传输协议 (HTTP)

使用的组件

本文档中的信息基于以下软件和硬件版本。

  • 通过Cisco IOS 12.1到12.2.7

  • 缓存-内容软件2.5.1和ACNS 4.X

  • 所有路由平台

  • 所有高速缓冲存储-内容平台CE507, CE560, CE590, CE7320, CE505, CE550, CE570

确定节约量

当查看储蓄联机为缓存时,有讨论三个区域;透明缓存,代理缓存和使用路由器接口计数器。

代理缓存

在代理缓存请设置客户端浏览设置指向直接地在储蓄计算是直接的一个预先确定的端口的地方Cache Engine。

有使用正确地确定的不同的命令缓存如何执行。

show statistics http savings

show statistics ftp

show statistics wmt。储蓄? ?(仅可用在ACNS 4.X及以上版本)

show statistics mediacache real savings ? ?(仅可用在ACNS 4.X及以上版本)

注意: 虽然您能设置安全代理(https)在浏览器的代理设置的我们只以隧道传输此会话,并且不能缓存它,因为加密。

透明缓存

使用Web缓存通信Protocol(WCCP),在透明缓存设置,设置在客户端浏览器没有要求,并且流量被拦截在路由器并且发送到缓存,保存的计算是正直接的。

这些是必要的命令确定储蓄。

show statistics http savings

show statistics wmt savings ? ?(仅可用在ACNS 4.X及以上版本)

show statistics mediacache real savings ? ?(仅可用在ACNS 4.X及以上版本)

注意: 在透明模式我们不能缓存ftp或https会话。? ?这些会话没有派遣到缓存和通过直接地到源服务器。

使用路由器确定带宽节省量

使用确定的路由器保存那里什么时候是要考虑的一定数量的事获得储蓄的准确测量在原始带宽的。? ?要执行的多数重要事情是设置基准。? ?为了执行您需要监控上行链路链路利用率从您的路由器的连接到互联网。?的此?在(RPC)设置您的反向代理高速缓冲存储需要监控在您的服务器的负载。? ?那里可用的监控链路利用率的许多工具是否是通过SNMP。? ?在免费可得的工具上MRTG,此应用程序不支持也思科没有供应。? ?可以在多路由器流量记录器找到leavingcisco.com

在Cisco路由器上您监控在show interface命令的以下计数器在链路到互联网, ? ?字节和字节。? ?为了得到您需要了解前往对互联网的流量构成。?的基线?仅在透明模式http中, wmt(1)和real(1)请求发送对CE。? ?当在代理模式ftp(2)和https(3)可以发送到缓存时以及http、wmt(4)和real(4)。? ?在这种情况下流量分析程序是一个无价的工具。? ?用于协议的端口被提及如下。? ?这些是默认端口,并且可以更改。

http tcp 80 
https tcp 443 
ftp tcp 20 and 21 
wmt tcp 1755 or udp 1755 or http or multicast 
real rtsp 554

(1) ? ?若被设定只作为WCCP服务。

(2) ? ?这只应用,当FTP会话发生故障从有ftp代理设置为缓存的浏览器或应用程序的内部。

(3) ? ?虽然HTTPS (请巩固)会话派遣到缓存,他们不可以是缓存和通过只被建立隧道。

(4) ? ?代理设置需要在Windows梅迪亚普莱耶或实时播放机内设。? ?请参见用户指南对于信息? ?关于怎样设置这些。

储蓄的计算的方法使用接口计数器如下:

  1. 没有缓存打开的结算连接的接口计数器对互联网(clear counters是Cisco IOS的命令)。

  2. 等待2平均的天和注意在下面选中项目的计数器值下。? ?注释时间计数器运行为。

  3. 打开您的高速缓冲存储,它是否是代理或透明缓存。您需要等待缓存填充。这应该是大约3天根据负载。? ?储蓄如果被看到在一些个小时之后,但是三天将给您一条好基线。

  4. 再清除在连接的接口计数器对互联网。

  5. 使用高速缓冲存储打开的等待相同数量时间如同高速缓冲存储关闭了。

  6. 再注释接口字节计数器。

  7. 差异是您的带宽节省量。? ?这将是不同的百分比与sh stat http saving比较由于看到所有流量的路由器接口,当缓存只看到缓存的协议时。

注意: 下面的stats是从执行http并且仅好图。?的路由器?在生产路由器上这是较少。

注意: 没有缓存的Show interface。

Serial0/0 is up, line protocol is up 
?? Hardware is PowerQUICC Serial 
?? Internet address is 10.64.21.10/30 
?? MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, 
???????? reliability 255/255, txload 59/255, rxload 194/255 
?? Encapsulation HDLC, loopback not set 
?? Keepalive set (10 sec) 
?? Last input 00:00:00, output 00:00:00, output hang never 
?? Last clearing of "show interface" counters 00:06:52 
?? Input queue: 4/75/0/0 (size/max/drops/flushes); Total output drops: 6 
?? Queueing strategy: weighted fair 
?? Output queue: 0/1000/64/6 (size/max total/threshold/drops) 
???????? Conversations?? 0/32/32 (active/max active/max total) 
???????? Reserved Conversations 0/0 (allocated/max allocated) 
???????? Available Bandwidth 96 kilobits/sec 
?? 5 minute input rate 177000 bits/sec, 47 packets/sec 
?? 5 minute output rate 30000 bits/sec, 44 packets/sec 
???????? 14218 packets input, 8743319 bytes, 0 no buffer 
???????? Received 42 broadcasts, 0 runts, 0 giants, 0 throttles 
???????? 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 
???????? 13019 packets output, 1113797 bytes, 0 underruns 
???????? 0 output errors, 0 collisions, 0 interface resets 
???????? 0 output buffer failures, 0 output buffers swapped out 
???????? 0 carrier transitions 
???????? DCD=up?? DSR=up?? DTR=up?? RTS=up?? CTS=up

注意: 与打开的高速缓冲存储的Show interface。

Serial0/0 is up, line protocol is up 
?? Hardware is PowerQUICC Serial 
?? Internet address is 10.64.21.10/30 
?? MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, 
???????? reliability 255/255, txload 1/255, rxload 1/255 
?? Encapsulation HDLC, loopback not set 
?? Keepalive set (10 sec) 
?? Last input 00:00:06, output 00:00:07, output hang never 
?? Last clearing of "show interface" counters 00:17:33 
?? Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 
?? Queueing strategy: weighted fair 
?? Output queue: 0/1000/64/0 (size/max total/threshold/drops) 
???????? Conversations?? 0/11/32 (active/max active/max total) 
???????? Reserved Conversations 0/0 (allocated/max allocated) 
???????? Available Bandwidth 96 kilobits/sec 
?? 5 minute input rate 0 bits/sec, 0 packets/sec 
?? 5 minute output rate 0 bits/sec, 0 packets/sec 
???????? 7503 packets input, 5408948 bytes, 0 no buffer 
???????? Received 105 broadcasts, 0 runts, 0 giants, 0 throttles 
???????? 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 
???????? 5723 packets output, 497401 bytes, 0 underruns 
???????? 0 output errors, 0 collisions, 0 interface resets 
???????? 0 output buffer failures, 0 output buffers swapped out 
???????? 0 carrier transitions 
???????? DCD=up?? DSR=up?? DTR=up?? RTS=up?? CTS=up

Show statistics 命令的解释

Show statistics http savings

cache-1#show statistics http savings 
???????????????????????????????????????????????? Statistics - Savings 
?????????????????????????????????????????????? Requests?????????????????????????????????????????????????? Bytes 
???????????????? ----------------------------------------------------------- 
?? Total:?????????????????????????????????? 663699???????????????????????????????????????? 5369304364 
???? Hits:?????????????????????????????????? 261820?????????????????????????????????????????? 583380690 
???? Miss:?????????????????????????????????? 401782???????????????????????????????????????? 4612002188 
Savings:?????????????????????????????????????? 39.4 %???????????????????????????????????????????????? 10.9 % 

百分比是给予您最好的征兆。?的图?正如你从上述输出看到,有请求储蓄39.4%和字节储蓄10%。? ?这在期望的范围储蓄内。

Show statistics ftp

cache-1#show statistics ftp 

FTP Statistics 
-------------- 

FTP requests Received = 6 

FTP Hits 
???????????????????????????????????????????????????????????????? Requests Percentage 
??Number of hits =???????????????????????????????????????????? 3???????????? 50.0 % 
?????????????????? Bytes =?????????????????????????????? 54171214???????????? 50.0 % 

FTP Misses 
???????????????????????????????????????????????????????????????? Requests Percentage 
??Number of misses =???????????????????????????????????????? 3???????????? 50.0 % 
?????????????????????? Bytes =?????????????????????????? 54171214???????????? 50.0 % 

??Requests sent to Outgoing Proxy?????? = 0 
??Requests sent to origin ftp server = 3 

FTP error count = 0

Show statistics wmt savings

cache-1#show statistics wmt savings 
Unicast Savings Statistics 
========================== 
Total bytes saved: 15271392 
-------------------------- 
???????????????????????????????????????????????????????????????????????????????? Total???????????? % of Total Bytes 
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Saved 
?????????????????????????????????????????????????????????? -------------------------------------------- 
By Pre-positioned content:?????????????????????????????????????? 0???????????????????? 0.00% 
?????????????? By Live-splitting:???????????????????????? 11770875?????????????????? 77.08% 
???????????????????????? By Cache-hit:?????????????????????????? 3500517?????????????????? 22.92% 

???????????????????????????????????????????????????????????????????????????????? Total???????????????? % of Total 
?????????????????????????????????????????????????????????????????????????????????????????????????? Live Outgoing Bytes 
?????????????????????????????????????????????????????????? -------------------------------------------- 
Live Splitting 
-------------- 
???????????????????? Incoming bytes:???????????????????????? 26367513?????????????????? 69.14% 
???????????????????? Outgoing bytes:???????????????????????? 38138388???????????????? 100.00% 
?????????????????????????? Bytes saved:???????????????????????? 11770875?????????????????? 30.86% 

???????????????????????????????????????????????????????????????????????????????? Total???????????? % of Bytes Cache 
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Total 
?????????????????????????????????????????????????????????? -------------------------------------------- 
Caching 
------- 
???????????????? Bytes cache-miss:???????????????????????? 10761747?????????????????? 75.46% 
?????????????????? Bytes cache-hit:?????????????????????????? 3500517?????????????????? 24.54% 
?????????????? Bytes cache-total:???????????????????????? 14262264???????????????? 100.00% 

???????? Bytes cache-bypassed:?????????????????????????????????????? 0 

???????????????????????????????????????????????????????????????????????????????? Total???????????????? % of Req Cache 
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Total 
?????????????????????????????????????????????????????????? -------------------------------------------- 

Cacheable requests 
------------------ 
???????????????????? Req cache-miss:?????????????????????????????????????? 1?????????????????? 16.67% 
?????????????????????? Req cache-hit:?????????????????????????????????????? 1?????????????????? 16.67% 
?????? Req cache-partial-hit:?????????????????????????????????????? 4?????????????????? 66.67% 
?????????????????? Req cache-total:?????????????????????????????????????? 6???????????????? 100.00% 

???????????? Req cache-bypassed:?????????????????????????????????????? 0 

Objects not cached 
------------------ 
???????????????????? Cache bypassed:?????????????????????????????????????? 0 
?????????????????? Exceed max-size:?????????????????????????????????????? 0

Show statistics mediacache real savings

ce-7320-cache#show statistics mediacache real savings 
???????????????????????? Media Cache Statistics - Savings 
?????????????????????????????????????????????? Requests?????????????????????????????????????????????????? Bytes 
???????????????? ----------------------------------------------------------- 
?? Total:???????????????????????????????????????????? 0?????????????????????????????????????????????????????????? 0 
???? Hits:???????????????????????????????????????????? 0?????????????????????????????????????????????????????????? 0 
???? Miss:???????????????????????????????????????????? 0?????????????????????????????????????????????????????????? 0 
Savings:???????????????????????????????????????? 0.0 %?????????????????????????????????????????????????? 0.0 % 

相关信息


Document ID: 21974