IVS产品V100R001C02版本客户端NAT环境下升级失败问题

发布时间:  2014-09-26 浏览次数:  305 下载次数:  0
问题描述
版本:eSpace IVS V100R001C02
组网概述:VMU*2+MPU*22
VMU 仅浮动地址NAT映射;MPU NAT映射;
故障现象:
外网客户端升级失败,提示“文件下载错误,校验升级文件的MD5值失败”;
内网升级正常;
使用升级后的客户端在外网登入、查看录像正常;
告警信息
告警信息:无
处理过程
1、抓包分析,显示客户端升级时与VMU交互获取的文件下载地址错误。
客户端配置的服务器地址10.173.4.48,但VMU返回的升级地址http://10.173.4.49:8481/FileService/DownloadFile?filesessionid=9CERC322US8U9000RJ9FP6JJUK
<Content><UpgradeInfo><IsUpgrade>Y</IsUpgrade><SetupFileMD5>a69912da38eb1e8b2ff9a797ccc9e751</SetupFileMD5><FileSize>171412142</FileSize><HttpURL>http://10.173.4.49:8481/FileService/DownloadFile?filesessionid=9CERC322US8U9000RJ9FP6JJUK</HttpURL></UpgradeInfo></Content>..



2、进一步查看客户端在获取错误地址后的处理情况,发现客户端向10.173.4.49:8441端口发起了下载请求,但下载失败。服务器返回“file not found”,如下:172.17.1.42为VMU的内网地址


3、尝试分析MPU返回“file not found”的原因
检查服务器上的客户端文件:实际存在
VCN3000-2:/opt/FileServer/version/CU_Release/PC # ls
HW_IVS_Client.exe  version.xml
所以感觉可能的原因是MPU不支持客户单下载。

根因
OMU Portal VMU NAT配置错误:被配置成MPU的地址
截图为已修改后的正确地址,之前被配置成10.173.4.49。


解决方案
修改VMU OMU portal NAT地址,跟实际地址对应。
修改后客户端升级时获取的正确URL:
o........0000SDK#150820140926094837000013..............................................................................<?xml version="1.0" encoding="UTF-8" ?><Content><CUInfo><CUType>5</CUType><CUVersion>1.1.4.100 Build20140603</CUVersion></CUInfo></Content>...o........0000SDK#150820140926094837000013.............................................................................
<Content><UpgradeInfo><IsUpgrade>Y</IsUpgrade><SetupFileMD5>a69912da38eb1e8b2ff9a797ccc9e751</SetupFileMD5><FileSize>171412142</FileSize><HttpURL>http://10.173.4.48:8481/FileService/DownloadFile?filesessionid=820R5KI53S8U9000I3HBK7IR60</HttpURL></UpgradeInfo></Content>...................................................................................................................t...................................................................................................................t

正确下载请求报文:
GET /FileService/DownloadFile?filesessionid=820R5KI53S8U9000I3HBK7IR60 HTTP/1.1

Host: 10.173.4.48:8481

Connection: Keep-Alive



HTTP/1.1 200 OK

Date: Fri, 26 Sep 2014 01:48:49 GMT

Server: Apache

Accept-Ranges: bytes

Accept-Length: 171412142

Content-Length: 171412142

Content-Disposition: attachment; filename=HW_IVS_Client.exe

Vary: Accept-Encoding

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: application/octet-stream



MZP.....................@...............................................!..L.!..This program must be run under Win32

$7........................................................................................................................................................................................................................................................................................................................................................................................................PE..L......H.................@...................P....@..........................0................... .......................................<...........................................................................................................text....@.......:.................. ..`.data........P...
...@..............@....idata... ...........J..............@..@.rsrc....@.......<...\..............@.
建议与总结
工作细心

END