您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > SSD 计算机网络 PPT Chapter3
TransportLayer3-1Chapter3TransportLayerE-Mail:huqp@whu.edu.cnTel:68778865(O)TransportLayer3-2Chapter3:TransportLayerOurgoals:understandprinciplesbehindtransportlayerservices:multiplexing/demultiplexingreliabledatatransferflowcontrolcongestioncontrollearnabouttransportlayerprotocolsintheInternet:UDP:connectionlesstransportTCP:connection-orientedtransportTCPcongestioncontrolTransportLayer3-3Chapter3outline3.1Transport-layerservices3.2Multiplexinganddemultiplexing3.3Connectionlesstransport:UDP3.4Principlesofreliabledatatransfer3.5Connection-orientedtransport:TCPsegmentstructurereliabledatatransferflowcontrolconnectionmanagement3.6Principlesofcongestioncontrol3.7TCPcongestioncontrolTransportLayer3-4Transportservicesandprotocolsprovidelogicalcommunicationbetweenappprocessesrunningondifferenthoststransportprotocolsruninendsystemssendside:breaksappmessagesintosegments,passestonetworklayerrcvside:reassemblessegmentsintomessages,passestoapplayermorethanonetransportprotocolavailabletoappsInternet:TCPandUDPapplicationtransportnetworkdatalinkphysicalapplicationtransportnetworkdatalinkphysicalTransportLayer3-5Transportvs.networklayernetworklayer:logicalcommunicationbetweenhoststransportlayer:logicalcommunicationbetweenprocessesrelieson,enhances,networklayerservicesHouseholdanalogy:12kidssendinglettersto12kidsprocesses=kidsappmessages=lettersinenvelopeshosts=housestransportprotocol=AnnandBillwhodemuxtoin-housesiblingsnetwork-layerprotocol=postalserviceTransportLayer3-6Internettransport-layerprotocolsreliable,in-orderdelivery(TCP)congestioncontrolflowcontrolconnectionsetupunreliable,unordereddelivery:UDPno-frillsextensionof“best-effort”IPWhatdoesUDPprovideinadditiontoIP?servicesnotavailable:delayguaranteesbandwidthguaranteesapplicationtransportnetworkdatalinkphysicalnetworkdatalinkphysicalnetworkdatalinkphysicalnetworkdatalinkphysicalnetworkdatalinkphysicalnetworkdatalinkphysicalnetworkdatalinkphysicalapplicationtransportnetworkdatalinkphysicalTransportLayer3-7Chapter3outline3.1Transport-layerservices3.2Multiplexinganddemultiplexing3.3Connectionlesstransport:UDP3.4Principlesofreliabledatatransfer3.5Connection-orientedtransport:TCPsegmentstructurereliabledatatransferflowcontrolconnectionmanagement3.6Principlesofcongestioncontrol3.7TCPcongestioncontrolMultiplexing/DemultiplexingUsesamecommunicationchannelbetweenhostsforseverallogicalcommunicationprocessesHowdoesMux/DeMuxwork?Sockets:doorsbetweenprocess&hostUDPsocket:(dest.IP,dest.Port)TCPsocket:(src.IP,src.port,dest.IP,dest.Port)TransportLayer3-8TransportLayer3-9Multiplexing/demultiplexingapplicationtransportnetworklinkphysicalP1applicationtransportnetworklinkphysicalapplicationtransportnetworklinkphysicalP2P3P4P1host1host2host3=process=socketdeliveringreceivedsegmentstocorrectsocketDemultiplexingatrcvhost:gatheringdatafrommultiplesockets,envelopingdatawithheader(laterusedfordemultiplexing)Multiplexingatsendhost:TransportLayer3-10HowdemultiplexingworkshostreceivesIPdatagramseachdatagramhassourceIPaddress,destinationIPaddresseachdatagramcarries1transport-layersegmenteachsegmenthassource,destinationportnumberhostusesIPaddresses&portnumberstodirectsegmenttoappropriatesocketsourceport#destport#32bitsapplicationdata(message)otherheaderfieldsTCP/UDPsegmentformatTransportLayer3-11Connectionlessdemultiplexingrecall:createsocketswithhost-localportnumbers:DatagramSocketmySocket1=newDatagramSocket(12534);DatagramSocketmySocket2=newDatagramSocket(12535);recall:whencreatingdatagramtosendintoUDPsocket,mustspecify(destIPaddress,destportnumber)whenhostreceivesUDPsegment:checksdestinationportnumberinsegmentdirectsUDPsegmenttosocketwiththatportnumberIPdatagramswithdifferentsourceIPaddressesand/orsourceportnumbersdirectedtosamesocketTransportLayer3-12Connectionlessdemux(cont)DatagramSocketserverSocket=newDatagramSocket(6428);ClientIP:BP2clientIP:AP1P1P3serverIP:CSP:6428DP:9157SP:9157DP:6428SP:6428DP:5775SP:5775DP:6428SPprovides“returnaddress”TransportLayer3-13Connection-orienteddemuxTCPsocketidentifiedby4-tuple:sourceIPaddresssourceportnumberdestIPaddressdestportnumberrecvhostusesallfourvaluestodirectsegmenttoappropriatesocketserverhostmaysupportmanysimultaneousTCPsockets:eachsocketidentifiedbyitsown4-tuplewebservershavedifferentsocketsforeachconnectingclientnon-persistentHTTPwillhavedifferentsocketforeachrequestTransportLayer3-14Connection-orienteddemux(cont)ClientIP:BP1clientIP:AP1P2P4serverIP:CSP:9157DP:80SP:9157DP:80P5P6P3D-IP:CS-IP:AD-IP:CS-IP:BSP:5775DP:80D-IP:CS-IP:BTransportLayer3-15Connection-orienteddemux:ThreadedWebServerclientIP:BP1clientIP:AP1P2serverIP:CSP:9157DP:80SP:9157DP:80P4P3D-IP:CS-IP:AD-IP:CS-IP:BSP:5775DP:80D-IP:CS-IP:BTransportLayer3-16Chapter3outline3.1Transport-layerservices3.2Multiplexinganddemultiplexing3.3Connectionlesstransport:UDP3.4Principlesofreliabledatatransfer3.5Connection-orientedtransport:TCPsegmentstructurereliabledatatransferflowcontrolconnectionmanagement3.6Principlesofcongestioncon
本文标题:SSD 计算机网络 PPT Chapter3
链接地址:https://www.777doc.com/doc-3391421 .html