-
1.1
SpeedTest
测速分析
1.1..1
SpeedTest
测速原理介绍
<
/p>
首
先
,
从
SpeedTest
官
网
(
)
找
到
了
SpeedTest
下载测速的原理
,具体如下:
1.
Your computer downloads small binary
files from the web server to the client,
and we measure that download to
estimate the connection speed.
2.
Based off this
result, we choose how much data to download for
the real test.
Our
goal
is
to
pick
the
right
amount
of
data
that
you
can
download
in
10
seconds,
ensuring
we
get
enough
for
an
accurate
result
but
not
take
too
long.
3.
We
prevent caches
from
throwing
off results
by
appending
random
strings
to
each download.
4.
Once
we
start
downloading,
we
use
up
to
four
HTTP
threads*
to
saturate
your connection and
get an accurate measurement.
5.
Throughput
samples are received at up to 30 times per second.
6.
These
samples
are
then
aggregated
into
20
slices
(each
being
5%
of
the
samples).
7.
The
fastest
10%
and
slowest
30%
of
the
slices
are
then
discarded.
We'll
explain that more
below.
8.
The
remaining slices are averaged together to
determine the final result.
*
Deciding the number of threads: will
use up to four http threads
during the
download
and
upload portions
of the test. However, it will only use
more than two threads if they are
needed to accurately measure the speed, so as
to minimize the effect of HTTP overhead
on lower-speed connections. After the
pre-test,
if
the
connection
speed
is
at
least
4
megabits
per
second,
then
will
use
four
threads.
Otherwise,
it
will
default
to
two
threads.
However, there is a hurdle on older
browsers: on Internet Explorer 7 and earlier
(as
well
as
Firefox
2
and
earlier),
the
browser
strictly
adheres
to
the
HTTP
specification of only
two threads per hostname. So for those older
browsers, in
order to scale
up to four threads we must open the third and
fourth thread to a
secondary URL
provided by the host that points to the same
server. This way, we
can
work
around
the
limitations
of
those
older
browsers
and
still
measure
higher-speed
connections
accurately.
Most
of
our
hosts
do
have
a
working
secondary URL, but
if you're testing from an older browser to a host
that doesn't,
will be limited to two
threads at maximum. This is one reason why
we recommend that all visitors use up-
to-date browsers.
解读关键点:
1.
测量结果中最快的
10%
和最慢的
30%
采样
点不计入评估结果
2.
大部分的浏览器都只能支持双线程,而如果速率达到
4Mbps
,建议使用支持
4
线程
的
浏览器
1.1..2
现场实测及分析
现
< br>场
使
用
**
手
机
,
在
手
机
上
安
装<
/p>
抓
包
软
件
,
在
启
动
SpeedTest
测速之前首先启动
Shark
进行抓包,以获取
SpeedTest
测
速时的抓包数据。下面分别介绍一下距离
**
较近的三个
SpeedTest
服
务器的测速原理:
服务器
测速周期
下载业务量
30MBytes*2
线程
GET
/speedtest/random4
GET
请求信息
HTTP/1.1
Host:
m
**
服务器
**
服务器
<=15
秒
30MBytes*2
线程
GET
/speedtest/random4
HTTP/1.1
Host:
m
30MBytes*2
线程
GET
/speedtest/random4
HTTP/1.1
Host:
**
服务器