<font color=#000000>中国移动<span lang=EN-US>GPRS cmnet</span>测试报告</font>

<span lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><font face=Calibri color=#000000 size=3> </font></span>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span><font color=#000000> 本文针对中国移动<span lang=EN-US>GPRS</span>的速度进行测试。中国移动<span lang=EN-US>GPRS</span>有两个接入点:<span lang=EN-US>cmnet</span><span lang=EN-US>cmwap</span><span lang=EN-US>cmwap</span>只能访问<span lang=EN-US>wap</span>网络,故本文不对<span lang=EN-US>cmwap</span>进行测试,以下测试结果都针对<span lang=EN-US>cmnet</span>而言。</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<font color=#000000>中国移动<span lang=EN-US>cmnet</span>拨号成功后,会给手机分配一个<span lang=EN-US>10</span>开头的私网<span lang=EN-US>IP</span>,例如:<span lang=EN-US>10.72.90.251</span>。没有公网<span lang=EN-US>IP</span>而只有私网<span lang=EN-US>IP</span>的话,只能通过网关的<span lang=EN-US>NAT</span>转换。对于一般互联网应用无所谓,用起来就像网吧一样。但这样对于某些应用如语音传输是很影响传输效率的</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<font color=#000000 size=3>测试地点:上海嘉定区同济大学嘉定校区</font>

<font color=#000000>测试平台:多普达<span lang=EN-US>577w</span>手机,运行<span lang=EN-US>Windows Mobile 5.0</span>系统</font>

<font color=#000000 size=3>测试内容:拨号速度测试、连接速度测试和数据传输速度测试。</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<font color=#000000>拨号速度测试主要测试<span lang=EN-US>GPRS</span>的拨号速度。从拨号请求发起开始,到<span lang=EN-US>GPRS</span>拨号成功结束。</font>

<font color=#000000>连接速度主要测试网络的路由,<span lang=EN-US>ping</span>的回应速度。</font>

<font color=#000000 size=3>数据传输速度测试主要针对网络的数据上传和下载进行测试。</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<font color=#000000>拨号速度测试</font>

<font color=#000000> 拨号测试主要测试<span lang=EN-US>GPRS</span>的拨号速度。从拨号请求发起开始,到<span lang=EN-US>GPRS</span>拨号成功结束。</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<font color=#000000>本测试主要使用<span lang=EN-US>ConnMgrEstablishConnectionSync</span>函数拨号建立连接。代码如下:</font>

<span lang=EN-US><font face=Calibri color=#000000 size=3> </font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> SYSTEMTIME time1,time2; </font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> CGPRSManager mgr;</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> LONG total = 0;</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> </font>for<font color=#000000> (</font>int<font color=#000000> i = 0; i < 10; i++)</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> {</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> GetSystemTime(&time1);</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> </font>if<font color=#000000> (! mgr.TrigerConnection())</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> {</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> </font>continue<font color=#000000>;</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> }</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> GetSystemTime(&time2);</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> </font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> mgr.Release();</font></span>

<span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><font color=#000000> LONG ms1 = time1.wSecond * 1000 + time1.wMilliseconds;</font></span>