First Course
First Course
First Course
Asnotedinearlierchaptersandasanyenduserwouldbequicktopointout,viewing
streamingvideoovertheInternetishardlyaseamlessexperience.Streamingvideo
suffersfromhiccups,delays,drop-outs,skips,andconnectionloss.Inthissection,
weexplainhowtheInternetmovesdataandhowthisaffectsvideoplayback.
It’ssometimeshardtounderstandwhytheInternethastroublemovingaudioand
videowhenradio,television,andtelephonesdoitfairlywellandhaveexistedfor
almost100years.Sofirstlet’slookatthemechanismsofthesetraditionalmedia.
Radio
router Radioworkssimplybecauseasingletowerbroadcaststhesamesignaltomanyreceivers.
anetworkdevice Everyonelistenstothesamethingatthesametime.Allthestationsareavailableatany
thatgroupscomputers time;yousimplyhavetotuneintoadifferentfrequencysignal.Themainbarriersto
inthenetwork radiotransmissionaredistance;physicalbarrierssuchashills,buildings,andtunnels
andestablishesanarea thatblockthesignal;andinterferencebetweentwostrongsignalsneareachotheron
insideit thedial.Intermsofcommunication,radioisaone-waybroadcasttransmission.
Television
Television works much like radio, except that television broadcasting is organized
intonationalnetworks.Thesameprogramisdeliveredtotelevisionreceiversaround
thecountrybybroadcastingtheoriginatingsignaltobranchoffices,whichbroadcasts
itoutfromtowers,outthroughcablecompanies,ortopeoplewithsatellitedishes.In
anycase,thesamesignalissenttoeveryoneatthesametime-aone-waybroadcast.
All the channels are available at any time; there is no noticeable delay caused by
changingchannels.Themainbarrierstotelevisionreceptionarebentorfrayedcables,
42 badly aimed antennas or dishes, physical barriers as in radio, and interference of
stationswitheachother.
English++
Telephone
Telephone calls use many of the same wires used by the Internet. The telephone
central office maintains devices called switches (automated versions of the classic
telephone switchboard) that are used to connect the call to the next location.
Telephonecallscreateatwo-waycircuitallthewayfromcallertoreceiver.Themessage
“All circuits are busy” - usually heard only during disasters or radio call-in concert
ticketgiveaways-meanstheswitchdoesnothaveanymoreslotsinwhichtocarry
thiscall.Themainbarrierstotelephonetransmissionarefoundatthebeginningof routing
thecall—iftherearenotenoughcircuitstoplacethecall.Whileacallisinprogress, theprocessofselecting
theentireroutebetweenthecallerandrecipientisreservedfortheiruseonly,evenif pathsinanetwork
thereissilenceandnooneistalking.Telephonesusewhatiscalledacircuit-switched alongwhichdata
connection. canbesentbetween
computers
(throughtherouter)
Internet Basics
The path from a website to a web browser is different than these other systems.
Conceptually,itissimilartothetelephoneconversation:It’satwo-wayconversationin
whichthebrowserasksforadocumentandtheserversendsit.Unlikethetelephone
call,however,thereisnoreservedcircuit.Data,intheformofrequestsandresponses,
areorganizedintochunkscalledpacketsandsentbetweentherequestingwebbrowser
andthewebserver.
Inbetweentherequesterandtheserverisaseriesofrouters.Thesemachinesroute bandwidth
trafficbetweendifferentsmallernetworks.Eachtimeapacketcrossestheboundary theamountofdata
fromoneISPtoanother,orfromonekindofnetworktoanother,itgoesthrougha thatcanbetransferred
router.Thepackets“hop”fromroutertorouterlikeabucketbrigade.Thistypeofdata throughaspecificpath
transmissioniscalledpacketswitching,insteadofcircuitswitching.Internetpacket inthenetwork
switchinghassomeattributesthatmakeitreliableandunreliableatthesametime. (usuallyexpressedinkb/s
[kilobitspersecond])
TheInternetisanextremelyheterogeneousnetwork,consistingofseveraldifferent
kindsofnetworksandwaysofconnectingnetworkstotheInternet,asdescribedin
thenextfewsections.
43
English++
Private Peering
Peeringissimplytwonetworksconnectingtoeachotherwithrouters.Publicpeering
occursatlargeexchangepoints,butanytwonetworksthatfindalotoftrafficflowing
betweenthemcanchoosetocreateadirectprivatelinkbetweenthenetworks(called
privatepeering).Thisreducesthecostofaccessthroughapublicexchangepointorother
providerforallthebandwidththattravelsbetweenthesetwonetworks.Italsodecreases
thenumberofintermediateconnectionsbetweenthenetworks.Forinstance,when
severalschoolsinthesameorganizationlinktogether,theirinter-campusnetwork
trafficdoesnothavetogoouttotheInternetatlarge,andisoftenmorereliableasa
result.Inthisscenario,though,eachschoolhasitsownconnectiontotheInternet.
Whatifoneoftheschool’sInternetconnectionswentdown?Woulditbefairtosend
its traffic through the private peering connection and use another school’s Internet
connection?Thewaythesekindsofquestionsareansweredandtheinternalpoliciesin
circuitswitchingnetwork thisregardareanothercontributingfactortothevariabilityofInternetpacketswitching.
anetworkinwhich
computersestablish
Internet Complexity
aconstantbandwidth
Aseverything“goesdigital,”thedistinctionbetweencableTVwires,telephonewires,
connectionbeforethey
radiowaves,andsatellitetransmissionblurs.However,therearemanywaystosend
starttoshareanydata
dataoverthesemedia.Internetdatatransmissioncanbecomplicated,leadingtoa
varietyofundesirabletransmissioncharacteristics.
44
English++
Different Routes
Notallpacketsinafilefollowthesameroutetothedestinationcomputer.Thisis
notunliketheairline’shubandspokesystem:Onepacketmightgo“direct”from
SanFranciscotoWashington;othersmight“transfer”inAtlantaorChicagotogetto
broadcast
Washington. Contributing to this issue is private peering and the variable rules and
theactionofsendingdata
costs associated with all the choices to be made. Alternate routes can be excellent
byonecomputer
whenonepathbetweentwomachinesgoesdownandapacketcanuseanotherpath.
inthenetworkto
Itcanalsocausestrangeeffects,suchaswhenapacketissentdownaslowroute,
alltheothers
isassumedlost,isresent-andthenlaterreappearsasaduplicatepacket!Audiocan
thatareavailable
stutterandskipifduplicatepacketsarenotdetectedanddiscarded.Also,somepaths
insidethenetwork
travelfaroutoftheway,hoppingthroughmanymoreroutersthannecessaryand
causinglargedelays.Themore“hops”orroutersbetweentwomachines,thehigher
thechanceofunexpecteddelays.
Delay (Latency)
Becauseofthemanydifferentroutersapackethastogothroughtogetfromsender
toreceiverandbecausetherearenoreservedcircuitsontheInternetliketherearefor
telephones,thedelayofanygivenpacketcanbehighorlow,orchangeunexpectedly.
Thiscanbecausedbyavarietyoffactorssuchas:Arouteristoobusyandcan’tkeep
upwithtraffic.Aparticularlinkbetweensenderandreceiverbecomessaturated.A
linkgoesdown,causingtraffictobereroutedtoadifferentlink.Oneormorerouters
in between can’t think fast enough. A firewall looks at all the packets for viruses.
Delayisaddedduetotheuseofoldertechnology,suchasmodems.Otherdownloads
onapipecauseittodelay.Packetsarelost,resultinginresends,andotherpackets
getbunchedupbehindthem.Thesefactorsmakepredictinghowlongitwilltaketo
getpacketsbackfromaserverdifficult.Becauseofvaryinglatency,videocantakea 45
English++
longtimetostartplaying;fast-forwardandrewindfeaturescanbeslowandclunky;
andvideocanpause,stutter,skip,andstopaltogether.BandwidthVariationAnother
factorontheInternetisthevariabilityofbandwidth.Withbroadcastmedia,suchas
Internetprovider radioortelevision,aswellastelephones,thebandwidthisalwaysthesame-just
acompanythatsells enoughtocarrythechannelortheconversation.Thereisnowastedbandwidth;the
bandwidthandaccess sizeofthechannelisjustenoughtocarrythedata.Itwasdesignedtobethatway.
totheInternet BecausetheInternetisdesignedtoallowdifferentcomputersofdifferentspeedsand
differentchannelsizescommunicate,itispossibletohavebottlenecks,notjustdue
totrafficthatthesizeofthechannelvariesfromsendertoreceiver.TheInternetlink
foramajorwebsite’shostingprovidermightbeexcellent.Thelinksbetweenthehost’s
ISP and its branch in a particular city might be high-capacity. However, the Internet
linkprovidedbyasmallISPtotheendusermightbeverysmallduetooversubscrip-
tion.IfthatInternetproviderhasincurredagooddealofcustomergrowthwithout
upgradingitsownconnectiontotheInternetbackbone,thepotentiallyhigh-bandwidth
connectionfromthewebsitehostisloweredtotheslowestintermediatelinkinthe
chain.Inotherwords,thebandwidthbetweenawebsiteandaclientisnofasterthan
itsslowestlink.
NOTE
Internet Fundamentally,theInternetisfarbettersuitedforsendingwebpagesthanreal-time
aglobalnetwork media because web pages are far smaller and far less sensitive to delays. There is
connectingmillions notmuchdifferencebetweenaone-andtwo-seconddelayingettingawebpage,but
ofcomputers aone-secondpauseinreal-timevideoisunacceptable.Thebrute-forceapproachof
keepingthebitrateofthevideofarbelowthemaximumbandwidthoftheInternet
connectioncanbeeffectiveingettingInternetvideotoperformpredictably.
46