it 210: web-based it winter 2012 measuring speed on the internet and www

15
IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Upload: gregory-terry

Post on 05-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

IT 210:Web-based IT

Winter 2012Measuring Speed on the

Internet and WWW

Page 2: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Sources of Delay Latency Delay: Length of pipe (time to

traverse) Bandwidth: Size of pipe (how much it

holds) Packet Loss/Error rates: Friction in pipe Content: Amount of data being transferred

Bandwidth

Delay

Page 3: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Delay x Bandwidth Product (volume) Amount of data “in flight” or “in the pipe”

(i.e., how much the pipe holds) Example: 100ms x 45Mbps = 576KB

Bandwidth

Delay

Page 4: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Bandwidth (bit rate, maximum throughput, channel capacity)

Bandwidth: amount of data that can theoretically “fit” on the network in a single unit of time (e.g., 10 Mbps)

Measured in Mbps (or some other bits/time)

Throughput is the actual (not theoretical maximum) bandwidth

Page 5: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Bandwidth/Throughput Calculator

Page 6: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Latency (total delay) Time to get a message from point A to point B Often measured in round-trip time (RTT) Composed of:

Propagation delay: distance/propagation speed Transmission delay: message size/bandwidth Queue delay: time spent waiting in line at routers

etc. Processing time: time to process a packet (e.g.,

check for errors, decide where to route)

Page 7: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Latency Calculator

Page 8: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

BYU vs NSU (in russia)

Page 9: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Packet Loss Queue overflow: when data arrives at the

queue faster than it can be transmitted new packets are discarded

Noise: distortions in the underlying transmission medium (e.g., electrical circuit) change a packet’s data causing it to fail an error check

Page 10: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Delays Based on Content Images (resize/compress offline, not via <img>) Remove unnecessary CSS & Javascript Move Javascript to end (unless needed in <head>) Limit ads and analytics tools being used Compress javascript, CSS, & HTML (e.g., use gzip) Use caching when possible (e.g., use cach-control

appropriately, use Content Delivery Networks – CDNs) Minimize HTTP Requests (e.g., combine all scripts into

single file, combine images into a single one)

Page 11: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Navigation Timing Javascript API

Page 12: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Online Speed Optimization Tools

Page 13: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

BitTorrent Peer-to-peer service for sharing large files Each file separated into parts Parts distributed among many devices that

use BitTorrent service When file is downloaded pieces come from

different sources in any order and are reassembled

Page 14: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Questions… What is responsible for a “slow” speed if:

A text message is sent via satellite link to someone in China?

A movie file is downloaded via a DSL modem?

Page 15: IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW

Questions… What is the transmission delay of a 20MB

file sent over a link with a 10Mbps throughput?