m&ms: cs freshmen experience 600yairamir/2017_02_m_and_m.pdf · 2/14/17 1 m&ms: cs freshmen...

7
2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University Yair Amir Spring 2017 / Week 3 1 Yair Amir Spring 2017 / Week 3 2 Networks Reading: https://en.wikipedia.org/wiki/History_of_the_Internet https://en.wikipedia.org/wiki/Routing https://en.wikipedia.org/wiki/Distance-vector_routing_protocol https://en.wikipedia.org/wiki/Link-state_routing_protocol https://en.wikipedia.org/wiki/Internet_protocol_suite https://en.wikipedia.org/wiki/Berkeley_sockets

Upload: others

Post on 11-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

1

M&Ms: CS Freshmen Experience600.105Networks

DepartmentofComputerScienceTheJohnsHopkinsUniversity

YairAmir Spring2017/Week3 1

YairAmir Spring2017/Week3 2

Networks

Reading:

https://en.wikipedia.org/wiki/History_of_the_Internet

https://en.wikipedia.org/wiki/Routinghttps://en.wikipedia.org/wiki/Distance-vector_routing_protocolhttps://en.wikipedia.org/wiki/Link-state_routing_protocol

https://en.wikipedia.org/wiki/Internet_protocol_suitehttps://en.wikipedia.org/wiki/Berkeley_sockets

Page 2: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

2

TheInternetRevolutionATechnicalPerspective

Asingle,multi-purpose,IP-basednetwork• Theartofdesign– asuccessfulparadigm

– Keepitsimpleinthemiddle• Best-effortpacketswitching,routing(intranet,Internet)

– Smartattheedge• End-to-endreliability,naming

• Couldthereforeadaptandscale– Survivedfor4decadesandcounting– Sustainedatleast7ordersofmagnitudegrowth

• Standardizedandalotridesonit– Thebasicservicesarenotlikelytochange

3YairAmir Spring2017/Week3

Routing

• Distancevectorrouting• Linkstaterouting• Inter-networkrouting

4YairAmir Spring2017/Week3

Page 3: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

3

DistanceVectorRouting• Eachrouterknowstheidofeveryotherrouterinthenetwork.

• Eachroutermaintainsavectorwithanentryforeverydestinationthatcontains:– Thecosttoreachthedestinationfromthisrouter.– Thefirstlinkthatisonthatleast-costpath.

• Eachrouterperiodicallysendsitsvectortoitsdirectneighbors.

• Uponreceivingavector,arouterupdatesthelocalvectorbasedonthedirectlink’scostandthereceivedvector.

5YairAmir Spring2017/Week3

LinkStateRouting• Eachrouterknowstheidofeveryotherrouterinthenetwork.

• Eachroutermaintainsatopologymapofthewholenetwork.

• Eachrouterperiodicallyfloodsitsdirectlinksstate(withitsdirectconnectivityinformation).

• Uponreceivingavector,arouterupdatesthelocaltopologymapandre-calculatesshortestpaths.

6YairAmir Spring2017/Week3

Page 4: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

4

InternetRouting• RoutingInformationProtocol:

– Distancevectorprotocol.– Hopcountmetric– Exchangeisdoneevery30seconds,faultdetectionevery180seconds.

– Cheapandeasytoimplement,unstableinthepresenceoffaults.

• OpenShortestPathFirst:– Linkstateprotocol.– Internalhierarchyforbetterscaling.– OptimizationforbroadcastLANswithroutersonthem.(AdesignatedrouterrepresentsthewholeLAN)- Savescontrolmessagesandsize.

7YairAmir Spring2017/Week3

InternetRouting(cont)

• Ahierarchicalroutingprotocolthatconnectsnetworks,eachofwhichrunsaninternalroutingprotocol.

• OSPForRIParecommoninternalprotocols.• BGP- BorderGatewayProtocol-

– Apathvectorprotocolwithadditionalpolicyinformationforeachpath.Pathvectorprotocolshavethecompletepathineachentryandnotonlythenextdirectmember.

– Generallyusedasthehierarchicalroutingprotocol.

8YairAmir Spring2017/Week3

Page 5: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

5

Sockets:SimpleAPItoAccessItAll• Socket• Bind• Sendto• Recvfrom

• Listen• Connect• Accept• Send

9YairAmir Spring2017/Week3

NewApplicationsBringNewDemands

• Communicationpatterns– FromPoint-to-point– topoint-to-multipoint– tomany-to-many

• Highperformancereliability– “Fasterthanreal-time”filetransfers

• Lowlatencyinteractivity– 150mskeystrokemirroring– 100msforVoIP– 80-100msforinteractivegames(65msonewayforremotesurgery?)

• End-to-enddependability– From“Internet”dependability– to“phoneservice”dependability– to

“TVservice”dependability– to“remotesurgery”dependability• Systemresiliency

– FromE-mailfaulttolerance– tofinancialtransactionsecurity– tocriticalinfrastructure(SCADA)intrusiontolerance

10Fall2016/Week4YairAmir

Page 6: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

6

TheOverlayParadigm

• Overlay paradigm: – In contrast to “keep it simple in the middle and smart at the edge”– Move intelligence and resources to the middle

• Software-based overlay routers working on top of the internet• Overlay links translated to Internet paths

• Smaller overlay scale (# nodes) è smarter algorithms, better performance, and new services.

YairAmir Fall2016/Week4 11

TheLiveTimeNet Cloud

YairAmir 12Fall2016/Week4

Page 7: M&Ms: CS Freshmen Experience 600yairamir/2017_02_M_and_M.pdf · 2/14/17 1 M&Ms: CS Freshmen Experience 600.105 Networks Department of Computer Science The Johns Hopkins University

2/14/17

7

State-of-the-art:CombiningTimelinessandReliabilityovertheInternet

200msone-waylatencyrequirement,99.999%reliabilityguarantee40msone-waypropagationdelayacrossNorthAmerica 13

NewChallenges:CombiningTimelinessandReliability

130msround-triplatencyrequirement80msround-trippropagationdelayacrossNorthAmerica 14