您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 广告经营 > 最详细的TCP_IP介绍
IntroductiontoTCP/IPPage2Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetworklayerLinklayerGeneralintroductiontoTCP/IPSuiteIPProtocolARPICMPUDPBOOTP&DHCPTFTPTCPPage3Copyright©2006RealtekSemiconductorCorp.WhatisTCP/IPTCP/IPisasetofprotocolsdevelopedtoallowcooperatingcomputerstoshareresourcesacrossanetwork.Figure1VariousprotocolsintheTCP/IPsuite.Page4Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetworklayerLinklayerGeneralintroductiontoTCP/IPSuiteIPProtocolARPICMPUDPBOOTP&DHCPTFTPTCPPage5Copyright©2006RealtekSemiconductorCorp.TCP/IPLayeringFTPClientFTPServerTCPTCPIPIPEthernetDriverEthernetDriverapplicationtransportnetworklinkEthernetprotocolIPprotocolTCPprotocolFTPprotocolUserprotocolhandlesapplicationdetailskernelhandlescommunicationdetailsmediahardwarehandlesphysicalsignalPage6Copyright©2006RealtekSemiconductorCorp.EncapsulationapplicationTCPIPEthernetDriverEthernetuserdataApplicationdatauserdataApplheaderTCPheaderApplicationdataTCPheaderIPheaderApplicationdataTCPheaderIPheaderEthernettrailerEthernetheaderTCPsegmentIPdatagramInputEthernetframe64to1500bytes1420204Encapsulationofdataasitgoesdowntheprotocolstack.Page7Copyright©2006RealtekSemiconductorCorp.DemultiplexingapplicationUDPIPEthernetDriver(NDISdriver)IncomingframeRARPARPICMPIGMPTCPapplicationapplicationapplication‧‧‧‧‧‧DemultiplexingbasedonframetypeinEthernetheaderDemultiplexingbasedonprotocolvalueinIPheaderDemultiplexingbasedondestinationportnumberinTCPorUDPheaderapplicationtransportnetworklinkPage8Copyright©2006RealtekSemiconductorCorp.Whatportnumberfor?TokeeptrackonconversationofindivdualapplicationsWhousesportnumber?TCPandUDPprotocoluseportnumbertoidentifyapplicationdata.Serversarenormallyknownbytheirwell-knownportnumber.Clientsallocateportnumbersbetween1024and5000.InternetaddressesconnectionTCPportsconnection1128.6.4.194,128.6.4.71234,212128.6.4.194,128.6.4.71235,21ExamplesofWell-knownportnumber(1to1023)socketWell-knownsocketsandtheapplicationlayerSocketApplicationPort#ShortforApplicationFTP20(data)FileTransferProtocolFiletransfer21(control)Telnet23RemoteControlSMTP25SimpleMessageTransferProtocolEmailPage9Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetworklayerLinklayerGeneralintroductiontoTCP/IPSuiteIPProtocolARPICMPUDPBOOTP&DHCPTFTPTCPPage10Copyright©2006RealtekSemiconductorCorp.TransportlayerResponsibleforend-to-enddataintegrity.Employedmostimportantprotocols:TransmissionControlProtocol(TCP)andUserDatagramProtocol(UDP).TCP:reliable,full-duplex.Canmaintainmultiple,simultaneouslyconnectionsUDP:unreliable,enhancednetworkthroughputApplicationsprogrammerscanchoosetheservicethatismostappropriatefortheirspecificapplications.Page11Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetworklayerLinklayerGeneralintroductiontoTCP/IPSuiteIPProtocolARPICMPUDPBOOTP&DHCPTFTPTCPPage12Copyright©2006RealtekSemiconductorCorp.NetworklayerNetworklayerhandlesthemovementofpacketsaroundthenetwork.Functionsofthislayer:Definethedatagram,whichisthebasicunitoftransmissionintheinternetDefinetheInternetaddressingschemeMovedatabetweentheNetworklayerandTransportlayerRoutedaragramtoremotehostsFragmentandreassembledatagramThislayercontainsIP(InternetProtocol),ICMP(InternetControlMessageProtocol),andIGMP(InternetGroupManagementProtocol.IPprovidesanunreliableandconnectionlessdatagramdeliveryservice.Page13Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetworklayerLinklayerGeneralintroductiontoTCP/IPSuiteIPProtocolARPICMPUDPBOOTP&DHCPTFTPTCPPage14Copyright©2006RealtekSemiconductorCorp.LinklayerThepurposeoflinklayer:Tosendandreceive(1)IPdatagramsfortheIPmodule(2)ARPrequestsandrepliesfortheARPmodule(3)RARPrequestsandrepliesfortheRARPmoduleDependingonthetypeofnetworkinghardware,linklayersupportsmanydifferentnetworkinginterfaces.Suchlike:Ethernet,tokenring,FDDI,ATM…EthernetarethemostcommoninterfaceFramebased(variablelength)QoSLackingPreamble/SFDDestinationAddressSourceAddressType/LengthDataandPadFramecheck8bytes6bytes6bytes2bytes46to1500bytes4bytesIdlePage15Copyright©2006RealtekSemiconductorCorp.RARPPadrequest/replyLinklayer–EthernetEncapsulationPreamble/SFDDestinationAddressSourceAddressType/LengthDataandPadFramecheck8bytes6bytes6bytes2bytes46to1500bytes4bytesEthernetFrame•IP/ICMP•ARP•RARPType/0x0800IPdatagramType/0x0806ARPPadrequest/replyType/0x8035246-15002281822818Page16Copyright©2006RealtekSemiconductorCorp.RARPPadrequest/replyLinklayer–IEEE802.2/802.3EncapsulationPreamble/SFDDestinationAddressSourceAddressLengthDataandPadFramecheck8bytes6bytes6bytes2bytes35bytes38to14924bytesIEEE802.2/802.3Frame–IP/ICMP–ARP–RARP0x0800IPdatagramARPPadrequest/reply238-14922281022810802.2LLC802.2SNAP0x08000x0800Page17Copyright©2006RealtekSemiconductorCorp.AgendaWhatisTCP/IP?TCP/IPlayeringTransportlayerNetwor
本文标题:最详细的TCP_IP介绍
链接地址:https://www.777doc.com/doc-6018177 .html