欢迎来到天天文库
浏览记录
ID:40254202
大小:316.96 KB
页数:13页
时间:2019-07-29
《01_6-1_Transport_Layer_Overview》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ComputerNetworksTransportLayerOverview(§6.1.2-6.1.4)DavidWetherall(djw@uw.edu)ProfessorofComputerScience&EngineeringWhereweareintheCourse•StartingtheTransportLayer!–BuildsonthenetworklayertodeliverdataacrossnetworksforapplicationswiththedesiredreliabilityorqualityAppl
2、icationTransportNetworkLinkPhysicalComputerNetworks2Recall•Transportlayerprovidesend-to-endconnectivityacrossthenetworkappappTCPTCPIPIPIPIP802.11802.11EthernetEthernetHostRouterHostComputerNetworks3Recall(2)•Segmentscarryapplicationdataacrossthenetwork•Segmentsarecarr
3、iedwithinpacketswithinframesSegment802.11IPTCPApp,e.g.,HTTPPacketFrameComputerNetworks4TransportLayerServices•ProvidedifferentkindsofdatadeliveryacrossthenetworktoapplicationsUnreliableReliableMessagesDatagrams(UDP)BytestreamStreams(TCP)ComputerNetworks5ComparisonofIn
4、ternetTransports•TCPisfull-featured,UDPisaglorifiedpacketTCP(Streams)UDP(Datagrams)ConnectionsDatagramsBytesaredeliveredonce,Messagesmaybelost,reliably,andinorderreordered,duplicatedArbitrarylengthcontentLimitedmessagesizeFlowcontrolmatchesCansendregardlesssendertorec
5、eiverofreceiverstateCongestioncontrolmatchesCansendregardlesssendertonetworkofnetworkstateComputerNetworks6SocketAPI•Simpleabstractiontousethenetwork–The“network”API(reallyTransportservice)usedtowriteallInternetapps–PartofallmajorOSesandlanguages;originallyBerkeley(Un
6、ix)~1983•SupportsbothInternettransportservices(StreamsandDatagrams)ComputerNetworks7SocketAPI(2)•SocketsletappsattachtothelocalnetworkatdifferentportsSocket,Socket,Port#1Port#2ComputerNetworks8SocketAPI(3)•SameAPIusedforStreamsandDatagramsPrimitiveMeaningSOCKETCreatea
7、newcommunicationendpointBINDAssociatealocaladdress(port)withasocketLISTENAnnouncewillingnesstoacceptconnectionsOnlyneededforStreamsACCEPTPassivelyestablishanincomingconnectionCONNECTActivelyattempttoestablishaconnectionTo/FromSEND(TO)SendsomedataoverthesocketformsforR
8、ECEIVE(FROM)ReceivesomedataoverthesocketDatagramsCLOSEReleasethesocketComputerNetworks9Ports•Applicationprocessisidentifiedb
此文档下载收益归作者所有
点击更多查看相关文章~~