版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
TCP/IPBasics
(ProtocolsandtheTCP/IPSuite)TCP:TransmissionControlProtocol
IP:InternetProtocol1精選課件Multi-layerCommunication(1/2)2精選課件Multi-layerCommunication(2/2)Aseriesoflayers,eachbuiltupontheonebelowit.Thepurposeofeachlayeristooffercertainservicestohigherlayers,hidingthedetailedimplementationoftheseservicesfromhigherlayersEachlayeriscompletelyindependentofothersaslongastheinterfacesarenotchanged.Sothesecretariescanswitchfromfaxtoemail,withoutdisturbingotherlayers3精選課件ProtocolProtocolisanagreementbetweentwocommunicationpartiesonhowcommunicationistoproceedTwocommunicationpartiescommunicatebymeansofformattedblocksofdatathatobeytherulesandconventionsknownasaprotocolKeyfeaturesofaprotocolSyntax:ConcernstheformatofthedatablocksSemantics:IncludescontrolinformationforcoordinationanderrorhandlingTiming:Includesspeedmatchingandsequencing4精選課件AgentsInvolvedinCommunicationApplicationsExchangedatabetweencomputers(e.g.,electronicmail)ComputersConnectedtonetworksNetworksTransfersdatafromonecomputertoanother5精選課件TCP/IPLayersCommunicationtaskisorganizedintofiverelativelyindependentlayersPhysicallayer…Layer1Networkaccesslayer…Layer2Internetlayer…Layer3Host-to-host(end-to-end),
ortransportlayerApplicationlayer(serviceaccesspoint)6精選課件LayeredConcepts7精選課件Physical(PHY)LayerCoversthephysicalinterfacebetweena
transmissiondevice(e.g.,workstation,
computer)andatransmissionmediumornetworkThesendingcomputermustprovidethenetworkoftheaddressofthedestinationcomputerThesendingcomputermaywishtoinvokecertainservicesprovidedbythenetworkDifferentstandardshavebeendevelopedPhysicallayerspecifies:CharacteristicsofthetransmissionmediumThenatureofsignalsDatarateOtherrelatedmattersUpperlayersabovenetworkaccessdonotneedtoconsiderthespecificsofthenetworktobeused8精選課件NetworkAccessLayerConcernedwiththeexchangeofdatabetween
anendsystem(server,workstation)andthenetworktowhichitisattachedSoftwareuseddependsontypeofnetworkCircuitswitchingPacketswitching(e.g.,X.25)LANs(e.g.,Ethernet)Others9精選課件InternetLayerNetworkaccesslayerisconcernedwith
accessandroutingdataacrossanetworkfor
twoendsystemsattachedthesamenetworkUsestheInternetprotocol(IP)whendevicesareattachedtodifferentnetworksProvidesroutingfunctionstoallowdatatotraversemultipleinterconnectednetworksImplementedinendsystemsandroutersArouterisaprocessororhostthatconnectstwonetworks.Themainfunctionistorelaydatafromonenetworktotheotheronitsroutefromthesourcetothedestinationendsystems10精選課件Host-to-Host,orTransportLayerProvidesreliabilityduringdataexchangesCompletenessOrder(Ifanapplicationneedstoexchangedatabetweentwocomputers,wealwayshopethedatawouldbetransmittedreliably.Allthedataarriveatthedestinationcorrectlyandarriveasthesameorderinwhichtheyweresentonthesourceapplication.)TransmissionControlProtocol(TCP)iscommonlyused另一種協(xié)定是UDP(UserDatagramProtocol)11精選課件Host-to-Host,orTransportLayer—TCPConnection-orientedprotocolProvidesareliableunicastend-to-endbytestreamoveranunreliableinternetwork.12精選課件Host-to-Host,orTransportLayer—Connection-OrientedBeforeanydatatransfer,TCPestablishesaconnection(3-wayhandshake)OneTCPentityiswaitingforaconnection(“server”)TheotherTCPentity(“client”)contactstheserverEachconnectionisfullduplex13精選課件Host-to-Host,orTransportLayer—ReliableBytestreamisbrokenupintochunks,i.e.,segmentsReceiversendsacknowledgements(ACKs)forsegmentsTCPmaintainsatimer.IfanACKisnotreceivedintime, thesegmentisretransmittedDetectingerrorsTCPhaschecksumsforheaderanddata.SegmentswithinvalidchecksumsarediscardedEachbytethatistransmittedhasasequencenumber14精選課件ByteStreamServiceTothelowerlayers,TCPhandlesdatainblocks(segments)TothehigherlayersTCPhandlesdataasasequenceofbytesanddoesnotidentifyboundariesbetweenbytesHigherlayersdonotknowaboutthebeginningandendofsegments15精選課件ApplicationLayerContainsthelogicneededtosupportvarious
userapplicationsUsesseparatemodulesthatarepeculiartoeachdifferenttypeofapplicationE.g.,e-mail,FTP,WWW,…16精選課件OperationsofTCPandIPTotalcommunicationsfacilitymayconsistofmultiplenetworksTheconstituentnetworks—subnetworksNetworkaccessprotocolIPImplementedinbothendsystemsandroutersRouteablockofdatafromoneendsystem,throughoneormorerouters,toanotherendsystemTCPOnlyimplementedintheendsystemsKeepstrackoftheblocksofdatatomakesurethatallaredeliveredreliablytotheappropriateapplication17精選課件OperationsofTCPandIPTwolevelsofaddressEachhostonasubnetworkmusthaveaglobalInternetaddress(e.g.,140.125.xxx.yyy)Eachprocesswithahostmusthaveanaddressthatisuniquewithinthehost—portsAportnumberidentifiestheendpointofaconnection.Pairs<clientIPaddr.,serverport#>and<serverIPaddr.,serverport#>identifyaTCPconnection.18精選課件TraceaSimpleOperation(1/2)36819精選課件TraceaSimpleOperation(2/2)Supposeoneapplication,associatedwith
port1inhostA,wishestosenddatato
anotherapplication,whichhasportnumber3inhostB.TheapplicationatAhandsthemessagedowntoTCPwithinstructiontosendittoports3athostB.TCPhandsthemessagedowntoIPwithinstructiontosendittohostB.IPneedsnottobetoldtheidentityofthedestinationport.AllitneedstoknowisthatthedataisintendedtohostB.IPhandsthemessagedowntonetworkaccesslayerwiththeinstructionstosendthemessagetorouterJ.ThesendingapplicationgeneratesblocksofdataandpassesittoTCP.TCPappendscontrolinformation,i.e.,TCPheader.ThecontrolinformationisusedatthepeerTCPprotocolathostB.20精選課件RefertoRFC(RequestforComments)793DestinationportSequencenumberChecksumCodebitsFIN:結(jié)束連線SYN:建立連線RST:重置連線PSH:封包立即傳送ACK:回應(yīng)上一次收到
的封包URG:請(qǐng)接收端立即處
理此封包(urgent)TCPHeader21精選課件TCPHeaderEachsequencenumberidentifiesabyte
inthebytestreamAcknowledgementNumber(AckNo)AcknowledgementsarepiggybackedAsegmentfromA→BcancontainanacknowledgementforadatasentintheB→AdirectionAhostusesAckNotosendacknowledgements.(IfahostsendsanAckNoinasegmentitsetsthe“ACKflag”)AckNocontainsthenextSeqNothatahostwantstoreceive例:Theacknowledgementforasegmentwithsequencenumbers0-1500isAckNo=1501例:Sendersendstwosegmentswith“1..1500”and“1501..3000”,butreceiveronlygetsthesecondsegment.Inthiscase,thereceivercannotacknowledgethesecondpacket.ItcanonlysendAckNo=122精選課件TCPConnectionEstablishmentTCPusesathree-way
handshaketoopena
connection:(1)ClientsendsasegmentwithSYNbitsetportnumberofclientinitialsequencenumber(ISN)ofclient(2)ServerrespondswithasegmentwithSYNbitsetinitialsequencenumberofserverACKforISNofclient(3)ClientacknowledgesbysendingasegmentwithACKISNofserver23精選課件ProtocolDataUnits(PDUs)AblockofinformationexchangedatanyprotocollevelisreferredtoasPDUsHeader+Data(payload)
+TrailerDestinationPortSequencenumberChecksumDestination
IPAddressSourceIPaddressDest.NetworkAddressPriorityinfo24精選課件IPDatagramFormat25精選課件IPDatagramFormat:FieldsoftheHeader(1/4)Version(4bits):currentversionis4,nextversion6Headerlength(4bits):lengthofIPheader,inmultiplesof4bytesDS/ECNfield(1byte)ThisfieldwaspreviouslycalledasType-of-Service(TOS)field.Theroleofthisfieldhasbeenre-defined,butis“backwardscompatible”toTOSinterpretationDifferentiatedService(DS)(6bits):Usedtospecifyservicelevel(currentlynotsupportedintheInternet)ExplicitCongestionNotification(ECN)(2bits):NewfeedbackmechanismusedbyTCP26精選課件IPDatagramFormat:FieldsoftheHeader(2/4)Identification(16bits)UniqueidentificationofadatagramfromahostIncrementedwheneveradatagramistransmittedFlags(3bits)Firstbitalwayssetto0DFbit(Donotfragment)MFbit(Morefragments)TimeToLive(TTL)(1byte)
SpecifieslongestpathsbeforedatagramisdroppedRoleofTTLfield:EnsurethatpacketiseventuallydroppedwhenaroutingloopoccursUsedasfollows:Sendersetsthevalue(e.g.,64)Eachrouterdecrementsthevalueby1Whenthevaluereaches0,thedatagramisdropped27精選課件Protocol(1byte)Specifiesthehigher-layerprotocolUsedfordemultiplexingtohigherlayersHeaderchecksum(2bytes)Asimple16-bitlongchecksumwhichiscomputedfortheheaderofthedatagramIPDatagramFormat:FieldsoftheHeader(3/4)28精選課件IPDatagramFormat:FieldsoftheHeader(4/4)OptionsSecurityrestrictionsRecordRoute:eachrouterthatprocessesthepacketaddsitsIPaddresstotheheaderTimestamp:eachrouterthatprocessesthepacketaddsitsIPaddressandtimetotheheader(loose)SourceRouting:specifiesalistofroutersthatmustbetraversed(strict)SourceRouting:specifiesalistoftheonlyroutersthatcanbetraversedPaddingPaddingbytesareaddedtoensurethatheaderendsona4-byteboundary29精選課件CommonTCP/IPApplicationsApplicationsthathavebeenstandardizedtooperateoverTCPinclude:Simplemailtransferprotocol(SMTP):providesabasicelectronicmailfacilityFileTransferProtocol(FTP):allowsfilestobesentfromonesystemtoanotherTELNET:Providesaremotelogoncapability…30精選課件SomeProtocolsinTCP/IPSuite31精選課件LayersoftheOSIModelTheOSI(OpenSystemsInterconnection)referencewasdevelopedbytheInternationalOrganizationforStandardization(ISO)ApplicationPresentationSessionTransportNetworkDatalinkPhysical32精選課件LayersoftheOSIModelApplicationlayerProvidesaccesstotheOSIenvironmentforusersProvidesdistributedinformationservicesPresentationlayerProvidesindependencetotheapplicationprocessesfromdifferencesindatarepresentation(syntax)Concernedwiththesyntaxandsemanticsoftheinformationtransmitted,e.g.ACSIIcode,UnicodeincompatibleDatacompressionEncryption33精選課件LayersoftheOSIModelSessionlayerProvidesthecontrolstructureforcommunication
betweenapplicationsWhoseturntotalk?Establishes,manages,andterminatesconnectionsbetweencooperatingapplicationsTokenmanagement:dialoguediscipline(full-duplex,half-duplex)Forsomeprotocols,itisessentialthatbothsidesdonotattemptthesameoperationatthesametime.OnlythesideholdingthetokenmayperformthecriticaloperationSynchronizationInsertcheckpointsintothedatastream,sothatafteracrash,onlythedatatransferredafterthelastcheckpointneedtoberepeated34精選課件LayersoftheOSIModelTransportlayerProvidesreliable,transparenttransferofdatabetween
endpointsProvidesend-to-enderrorrecoveryandflowcontrolNetworklayerProvidesupperlayerswithindependencefromthedatatransmissionandswitchingtechnologiesusedtoconnectsystemsResponsibleforestablishing,maintaining,andterminatingconnectionsAkeydesignissueisdetermininghowpacketsareroutedfromsourcetodestination.Statictable?Dynamictableisdeterminedanewforeachpacket,toreflectthecurrentnetworkload35精選課件LayersoftheOSIModelData-linklayerProvidesthereliabletransferofinformationacross
thephysicallinkSendsblocks(frames)withthenecessarysynchronization,errorcontrol(errordetection/correction),andflowcontrolPhysicallayerTransmissionofunstructuredbitstreamoverphysicalmediumDealswithaccessingthephysicalmediumMechanicalcharacteristicsElectricalcharacteristicsFunctionalcharacteristicsProceduralcharacteristics36精選課件ComparisonofOSIandTCP/IP37精選課件TCP/IPArchitecturalDominanceTCP/IPprotocolsmaturedquickerthansimilarOSIprotocolsWhentheneedforinteroperabilityacrossnetworkswasrecognized,onlyTCP/IPwasavailableandreadytogoOSImodelisunnecessarilycomplexAccomplishesinsevenlayerswhatTCP/IPdoeswithfewerlayers38精選課件InternetworkingTerms(名詞)Communicationnetwork–facilitythatprovidesadatatransferserviceamongdevicesattachedtothenetworkInternet–collectionofcommunicationnetworks,interconnectedbybridges/routersIntranet–internetusedbyanorganizationforinternalpurposesProvideskeyInternetapplicationsCanexistasanisolated,self-containedinternetInmostcases,aLANorWANisnotisolated.Forexample,anorganizationmayhavemorethanonetypeofLANsatdifferentsites,andneedthemtobeinterconnectedviaWANsforcentralcontrolofdistributedinformationexchange.39精選課件InternetworkingTerms(cont’d)EndSystem(ES)–deviceusedtosupportend-userapplicationsorservicesIntermediateSystem(IS)–deviceusedtoconnecttwonetworksEachsubnetworkinaninternetsupportscommunicationamongthedevicesattachedtothatsubnetwork.Subnetworksareconnec
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 自主考試羽毛球類題目及答案
- 敢不敢挑戰(zhàn)做卷子題目及答案
- 張佳寧高考題目及答案
- 八下中考卷的題目及答案
- 辦公室員工培訓(xùn)組織與實(shí)施制度
- 問題線索會(huì)商研判制度
- 酒吧營銷制度
- 大數(shù)據(jù)清洗工具比較
- 項(xiàng)目管理關(guān)鍵技術(shù)要點(diǎn)
- 輪崗鍛煉制度
- HBM高帶寬存儲(chǔ)器專題研究分析報(bào)告
- 骨髓移植患者的緊急護(hù)理
- 高一英語完型填空10篇實(shí)戰(zhàn)訓(xùn)練及答案
- 2021年高中物理選修二第一章《安培力與洛倫茲力》經(jīng)典練習(xí)題(答案解析)
- 室外消防管道穿過馬路及車輛疏導(dǎo)施工方案
- 浙江省生態(tài)環(huán)境專業(yè)工程師職務(wù)任職資格量化評(píng)價(jià)表
- 成都市計(jì)劃生育條例
- 未決清理培訓(xùn)
- 《課程與教學(xué)論》教案
- 2旋挖鉆孔長護(hù)筒灌注樁專項(xiàng)施工方案
- WB/T 1066-2017貨架安裝及驗(yàn)收技術(shù)條件
評(píng)論
0/150
提交評(píng)論