C语言双语CHAPTER资料_第1页
C语言双语CHAPTER资料_第2页
C语言双语CHAPTER资料_第3页
C语言双语CHAPTER资料_第4页
C语言双语CHAPTER资料_第5页
已阅读5页,还剩67页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

会计学1C语言双语CHAPTER资料2ProtocolArchitecture,TCP/IP,andInternet-BasedApplicationsTodestroycommunicationcompletely,theremustbenorulesincommonbetweentransmitterandreceiver—neitherofalphabetnorofsyntax

—OnHumanCommunication,ColinCherry第1页/共72页3Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第2页/共72页42.1TheNeedForProtocolArchitectureTotransferdataseveraltasksmustbeperformed:1.)thesourcemustactivatecommunicationspathorinformnetworkofdestination2.)thesourcemustmakesurethatdestinationispreparedtoreceivedata3.)thefiletransferapplicationonsourcemustconfirmfilemanagementprogramatdestinationispreparedtoacceptandstorefile4.)aformattranslationfunctionmayneedtobeperformediftheformatsonsystemsaredifferent第3页/共72页5FunctionsofProtocolArchitecturebreakslogicintosubtaskmoduleswhichareimplementedseparatelymodulesarearrangedinaverticalstackeachlayerinthestackperformsasubsetoffunctionsreliesonnextlowerlayerforprimitivefunctionschangesinonelayershouldnotrequirechangesinotherlayers第4页/共72页6KeyFeaturesofaProtocolAprotocolisasetofrulesorconventionsthatallowpeerlayerstocommunicate.Thekeyfeaturesofaprotocolare:SyntaxformatofdatablocksSemanticscontrolinformationforcoordinationanderrorhandlingTimingspeedmatchingandsequencing语法语义时序关系第5页/共72页7Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第6页/共72页82.2ASimpleProtocolagentsinvolved:applicationscomputersnetworksexamplesofapplicationsincludefiletransferandelectronicmailtheseexecuteoncomputersthatsupportmultiplesimultaneousapplications第7页/共72页9CommunicationLayerscommunicationtasksareorganizedintothreerelativelyindependentlayers: ApplicationlayerContainslogictosupportapplicationsTransportlayerprovidesreliabledatatransferNetworkaccesslayerconcernedwiththeexchangeofdata(应用层)(传输层)(网络接入层)第8页/共72页10NetworkAccessLayer网络接入层coverstheexchangeofdatabetweenanendsystemandthenetworkthatitisattachedtoconcernedwithissueslike:destinationaddressprovisioninvokingspecificserviceslikepriorityaccessto&routingdataacrossanetworkfortwoendsystemsattachedtothesamenetwork第9页/共72页11TransportLayer传输层第10页/共72页12ApplicationLayer应用层containsthelogicneededtosupportuserapplicationsseparatemoduleisneededforeachtypeofapplication第11页/共72页13ProtocolArchitectureandNetworks第12页/共72页14ProtocolsinaSimplifiedArchitecture第13页/共72页15Addressing寻址Twolevelsofaddressingareneeded:eachcomputeronthenetworkhasauniquenetworkaddresseachapplicationhasanaddressthatisuniquewiththatcomputer(SAPs)第14页/共72页16ProtocolDataUnit(PDU)

协议数据单元thecombinationofdataandcontrolinformationisaprotocoldataunit(PDU)typicallycontrolinformationiscontainedinaPDUheadercontrolinformationisusedbythepeertransportprotocolatcomputerBheadersmayinclude:sourceport,destinationport,sequencenumber,anderror-detectioncode第15页/共72页17NetworkAccessProtocolafterreceivingsegmentfromtransportlayer,thenetworkaccessprotocolmustrequesttransmissionoverthenetworkthenetworkaccessprotocolcreatesanetworkaccessPDU(packet)withcontrolinformationheaderincludes:sourcecomputeraddressdestinationcomputeraddressfacilitiesrequests第16页/共72页18Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第17页/共72页19TCP/IPProtocolArchitectureResultofprotocolresearchanddevelopmentconductedonARPANETReferredtoasTCP/IPprotocolsuiteTCP/IPcomprisesalargecollectionofprotocolsthatareInternetstandards第18页/共72页20TCP/IPLayersandExampleProtocols第19页/共72页21PhysicalLayercoversthephysicalinterfacebetweencomputerandnetworkconcernedwithissueslike:characteristicsoftransmissionmediumnatureofthesignalsdatarates第20页/共72页22NetworkAccessLayercoverstheexchangeofdatabetweenanendsystemandthenetworkthatitisattachedtoconcernedwithissueslike:destinationaddressprovisioninvokingspecificserviceslikepriorityaccessto&routingdataacrossanetworkfortwoendsystemsattachedtothesamenetwork第21页/共72页23InternetLayerimplementsproceduresneededtoallowdatatotravelacrossmultipleinterconnectednetworksusestheInternetProtocol(IP)toprovideroutingfunctionimplementedinendsystemsandrouters第22页/共72页24Host-to-Host(Transport)LayerconcernedwithprovidingreliabledeliveryofdatacommonlayersharedbyallapplicationsmostcommonlyusedprotocolistheTransmissionControlProtocol(TCP)第23页/共72页25OperationofTCP/IP第24页/共72页26TCP/IPAddressRequirementsTwolevelsofaddressingareneeded:eachhostonasubnetworkmusthaveauniqueglobalinternetaddresseachprocesswithahostmusthaveanaddress(knownasaport)thatisuniquewithinthehostIPaddressPortnumber第25页/共72页27OperationofTCP/IP第26页/共72页28TransmissionControlProtocol(TCP)TCPisthetransportlayerprotocolformostapplicationsTCPprovidesareliableconnectionfortransferofdatabetweenapplicationsATCPsegmentisthebasicprotocolunitTCPtrackssegmentsbetweenentitiesfordurationofeachconnection第27页/共72页29TCPHeader第28页/共72页30UserDatagramProtocol

(UDP)alternativetoTCPdoesnotguaranteedelivery,preservationofsequence,orprotectionagainstduplicationaddsportaddressingcapabilitytoIPusedwithSimpleNetworkManagementProtocol(SNMP)第29页/共72页31UDPHeader第30页/共72页32IPHeader第31页/共72页33IPv6ProvidesenhancementsoverexistingIPDesignedtoaccommodatehigherspeedsandthemixofgraphicandvideodataDrivingforcewastheneedformoreaddressesduetogrowthoftheInternetIPv6includes128-bitsourceanddestinationaddressfields第32页/共72页34IPv6Header第33页/共72页35SomeTCP/IPProtocols第34页/共72页36思考题协议是什么?为什么需要协议?协议构成的基本要素是什么?协议体系结构为什么采用分层的方法?优缺点?三层简单协议体系结构中,各层协议完成的功能?网络系统中的两级地址是?靠什么来传递对等层协议相关信息?协议体系结构的工作?TCP/IP协议包括哪五个部分?第35页/共72页37Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第36页/共72页38协议分层的理解请举一日常生活中的例子来形象地描述该模型中各层的peer-to-peerprotocol(对等协议)和上下层之间的interface(接口)。北大学生张明给理工大学生李强写信的例子

张明写信李强读信

封入信封拆开信封投入信箱从信箱中取信件收信分检装邮包开邮包选路投递邮包送转运站从转运站取回邮包装列车箱发运列车箱卸包送转运站中文姓名地址目的地址目的站第37页/共72页39张明给李强写信的通信协议体系结构图例张明(发送方)李强(接收方)2/1接口3/2接口4/3接口第4层第3层第2层第1层第2层对等协议第1层对等协议第3层对等协议第4层对等协议写信读信封信投信收信分检装包转运邮包装车卸车取回邮包投递选路拆包拆信取信发车到站铁轨(传输媒体)第38页/共72页402.4StandardizedProtocolArchitectures第39页/共72页41LayerSpecificStandards

特定层的标准第40页/共72页42OSIStandardizationframeworkforstandardizationwasmotivatorlowerlayersareconcernedwithgreaterlevelsofdetailseachlayerprovidesservicestothenexthigherlayerthreekeyelements:ProtocolspecificationServicedefinitionAddressing第41页/共72页43PrimitiveTypesREQUEST请求AprimitiveissuedbyaserviceusertoinvokesomeserviceandtopasstheparametersneededtospecifyfullytherequestedserviceINDICATION指示Aprimitiveissuedbyaserviceprovidereitherto:indicatethataprocedurehasbeeninvokedbythepeerserviceuserontheconnectionandtoprovidetheassociatedparameters,ornotifytheserviceuserofaprovider-initiatedactionRESPONSE

响应AprimitiveissuedbyaserviceusertoacknowledgeorcompletesomeprocedurepreviouslyinvokedbyanindicationtothatuserCONFIRM

证实Aprimitiveissuedbyaserviceprovidertoacknowledgeorcompletesomeprocedurepreviouslyinvokedbyarequestbytheserviceuser第42页/共72页44ServicePrimitives(原语)andParametersdefineservicesbetweenadjacentlayersusing:primitivestospecifyfunctionperformedparameterstopassdataandcontrolinfo第43页/共72页45Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第44页/共72页46InternetApplicationsApplicationsthatoperateontopofTCPinclude:SMTPFTPSSHTCP第45页/共72页47Contents为什么需要协议体系结构简化的协议体系结构TCP/IP协议体系结构标准化的协议体系结构传统的互联网应用多媒体第46页/共72页48MultimediaTerminology第47页/共72页49MultimediaTerminologyaudiogenerallyencompassessoundsthatareproducedbyahuman,telephonyandrelatedvoicecommunicationstechnologyimagesupportsthecommunicationofindividualpictures,charts,ordrawingsvideoservicecarriessequencesofpicturesintimetextisinformationthatcanbeenteredviaakeyboardandisdirectlyreadableandprintable第48页/共72页50MultimediaApplicationsMultimediainformationsystems

databases,informationkiosks,hypertexts,electronicbooks,andmultimediaexpertsystemsMultimediacommunicationsystems

computer-supportedcollaborativework,videoconferencing,streamingmedia,andmultimediateleservicesMultimediaentertainmentsystems

3Dcomputergames,multiplayernetworkgames,infotainment,andinteractiveaudiovisualproductionsMultimediabusinesssystems

immersiveelectroniccommerce,marketing,multimediapresentations,videobrochures,virtualshoppingMultimediaeducationalsystems

electronicbooks,flexibleteachingmaterials,simulationsystems,automatictesting,distancelearning第49页/共72页51DomainsofMultimediaSystemsandExampleApplications第50页/共72页52ElasticandInelasticTrafficcanadjusttodelayandthroughputchangesacrossaninternet-traditional“data”styleTCP/IPtrafficdoesnoteasilyadapttochangesindelayandthroughput-“real-time”trafficsuchasvoiceandvideoElasticTraffic弹性流量InelasticTraffic非弹性流量第51页/共72页53MultimediaTechnologies第52页/共72页54SummaryintroducedneedforprotocolarchitectureTCP/IPprotocolarchitectureprotocolarchitecturestandardizationmultimediaapplicationneeds协议的关键要素TCP/IP协议体系结构第53页/共72页55AssignmentsPart12.1Multiplechoice1.WhichofthefollowingisNOTthekeyelementsofaprotocol?A.syntax

B.semantics

C.rule

D.timing

第54页/共72页562.1Multiplechoice2-5.ThelayersinTCP/IPprotocolarchitectureare2

,Intransportlayer,TCPprovides3

datatransmission,andUDPprovides4datatransmission.Innetworklayer,IPprovides

5packettransmission.

2.A.transportlayer,internetlayer,networkaccesslayer,physicallayerB.applicationlayer,transportlayer,internetlayer,networkaccesslayer,physicallayerC.transportlayer,internetlayer,ATMlayer,physicallayerD.transportlayer,networklayer,datalinklayer,physicallayer3.A.connectionoriented,notreliableB.connectionless,notreliableC.connectionoriented,reliableD.connectionless,reliable4.A.connectionlessB.connectionorientedC.connectionless,reliableD.connectionoriented,notreliable5.A.connectionoriented,reliableB.connectionless,reliableC.connectionoriented,notreliableD.connectionless,notreliable第55页/共72页572.1Multiplechoice6.Networkarchitecturecanbedefinedas:A.animplementationofcomputernetworksB.asoftwaremoduletoimplementtechniquesanddataprocessingC.asetofrulesandstandardstosetuporusehardware(software)forcommunication.D.astandarddefinedbyISO.7.Communicationsystemhasdifferentkindsofconnections.Internetconnectionis

ina:A.pointtopointlinkB.MultinodebroadcastnetworkC.switchingnetworkD.Packetswitchingnetwork

第56页/共72页582.1Multiplechoice8.ThelayersofTCP/IPprotocolarchitectureare(fromtoptobottom):A.application,session,transport,networkaccess,physicalB.application,transport,network,datalink,physicalC.application,transport,internet,networkaccess,physicalD.application,presentation,transport,internet,networkaccess

第57页/共72页592.1Multiplechoice9.Regardlessofthenatureoftheapplicationsthatareexchangingdata,thereisusuallyarequirementthatdatabeexchangedreliably,thisisreferredtoasthe().A.transportlayerB.applicationlayerC.physicallayerD.networkaccesslayer第58页/共72页602.1Multiplechoice10.Thecombinationofdatafromthenexthigherlayerandcontrolinformationisknownasa().

A.datalink B.headerC.protocoldataunit D.sequencenumber

11.The()layerisconcernedwiththeexchangeofdatabetweenanendsystem(server,workstation,etc.)andthenetworktowhichitisattached.

A.transport B.applicationC.networkaccess D.physical第59页/共72页612.1Multiplechoice12.Themainfunctionofthephysicallayeristotransfer()correctly.A.bitstreamB.framesC.packetsD.datagram13.The()isusedatthislayertoprovidetheroutingfunctionacrossmultiplenetworks.A.TransmissionControlProtocol

B.InternetProtocolC.UserDatagramProtocolD.FileTransferProtocol第60页/共72页622.2TermsDefinitionProtocolPDUFileTransferProtocolInternetProtocolUserDatagramProtocol第61页/共72页632.3FillintheBlanksInlayeredmodel,whenapplicationdatatransmitfromupperlayertolowerlayer,eachlayerappendsa____,containingprotocolcontrolinformation.Thepeerlayerscommunicatebymeansofformattedblocksofdatathatobeyasetofrulesorconventionsknownasa____.

第62页/共72页642.4AnswerQuestions

1.Whatarethekeyfeaturesofaprotocol?2.GivethefunctionsofeachlayerofTCP/IP.第63页/共72页65AssignmentsPart22.5MultipleChoice1.Thepurposeofflowcontrolis:A.errorcontrolling B.timingC.orderdelivery D.topreventreceiveroverload2.Eachprocesswithahostmusthaveanaddressthatisuniquewithinthehost;thisallowsthehost-to-hostprotocol(TCP)todeliverdatatotheproperprocess.Theseaddressesareknownas():A.globalinternetaddressB.portsC.networkaddressD.computeraddress第64页/共72页662.5MultipleChoice3.The()isconcernedwithspecifyingthecharacteristicsofthetransmissionmedium,thenatureofthesignals,thedatarate,andrelatedmatters.A.NetworkaccesslayerB.physicallayerC.transportlayerD.Internetlayer4.IPappendsaheaderofcontrolinformationtoeachsegmenttoforman().A.IPsegmentB.IPpacketC.IPstreamD.IPdatagram第65页/共72页672.5MultipleChoice5.Communicationbetweenpeerlayeratdifferentnodesneeds:A.interfaceB.peerprotocolC.electricalsignalD.transmissionmedia6.()characteristicofthephysicallayerrelatestothephysicalpropertiesoftheinterfacetoatr

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论