版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
DHCP,DNS,SNMPDebashisSahaMISGroup,IIMCalcuttads@iimcal.ac.in1DHCP,DNS,SNMP1FirstQuestionThursday,May17,20072FirstQuestionThursday,May17TheInternetandAddressingAllmachinesontheInternetareaccessedviatheirIPaddressDottedquad:xxx.xxx.xxx.xxxProblem:IPaddressesarehardtorememberandhardtostaticallyassignonlargenetworksSolution:NeedtocomeupwithawaytoautomaticallyassignIPaddressesandatextbasedrepresentationofmachineaddressesinsteadofjust4numbersThursday,May17,20073TheInternetandAddressingAllAddressingSolutionsTwoprotocolshavebeendevelopedtosolvetheseproblemsDHCP–automaticnetworkconfiguration(includingIPaddress)DNS–translatestextualbasednamesintoIPaddressesandviceversaThursday,May17,20074AddressingSolutionsTwoprotocDHCP–DynamicHostConfigurationProtocolThursday,May17,20075DHCP–DynamicHostConfiguratDHCPAllowsclientmachinestoreceiveanIPaddress,DNSinformation,etcautomaticallyBeforeDHCPcameintouse,usershadtotypeinallthisinformationbyhand,whichisbad:EasytomistypesomethingwhenenteringbyhandManuallychangingnetworkconfigurationeverytimeyoumoveyourlaptopisapainBootpresolvedsomeoftheseissues…andDHCPstillusesthesameportasbootpThursday,May17,20076DHCPAllowsclientmachinestoPurposeofDHCP FromRFC-2131(theInternetstandard):TheDynamicHostConfigurationProtocol(DHCP)providesaframeworkforpassingconfigurationinformationtohostsonaTCP/IPnetwork.DHCPconsistsoftwocomponents:aprotocolfordeliveringhost-specificconfigurationparametersfromaDHCPservertoahostandamechanismforallocationofnetworkaddressestohosts.Thursday,May17,20077PurposeofDHCP FromRFC-2131DHCPfunctionalgoalsAhostwithoutavalidIPaddresslocatesandcommunicateswithaDHCPserverADHCPserverpassesconfigurationparameters,includinganIPaddress,tothehostTheDHCPservermaydynamicallyallocateaddressestohostsandreuseaddressesHostscandetectwhentheyrequireanewIPaddressUnavailabilityofDHCPserverhasminimaleffectonoperationofhostsThursday,May17,20078DHCPfunctionalgoalsAhostwiDHCP:BasicsAclientleasesanIPaddressfromaDHCPserverforagivenamountoftimeWhenleaseexpires,theclientmustaskDHCPserverforanewaddress(clientsattempttorenewleaseafter50%oftheleasetimehasexpired)Typicalleasesmaylastforfrom30secondsto24hours,orevenlonger.Thursday,May17,20079DHCP:BasicsAclientleasesanWhatdoesDHCPdo?Providesprotocolstack,applicationandotherconfigurationparameterstohostsEliminatesneedforindividual,manualconfigurationforhostsIncludesadministrativecontrolsfornetworkadministratorsBackwardcompatiblepacketformatforBOOTPinteroperation(RFC1542)Cancoexistwithhoststhathavepre-assignedIPaddressesandhoststhatdonotparticipateinDHCPThursday,May17,200710WhatdoesDHCPdo?ProvidesproDesignGoalsEliminatemanualconfigurationofhostsPreventuseofanyIPaddressbymorethanonehostShouldnotrequireaserveroneverysubnetAllowformultipleDHCPserversProvideamechanism,notapolicyProvidethesameconfiguration-includingIPaddress-toahostwheneverpossibleThursday,May17,200711DesignGoalsEliminatemanualcWhatcanyoudowithDHCPPlug-and-playMovedesktopPCsbetweenofficesRenumberOtherrestructuring-changesubnetmasksMobileIP-laptopsMovingequipment-cartableThursday,May17,200712WhatcanyoudowithDHCPPlug-WhatDHCPdoesn’tdoSupportmultipleaddressesperinterfaceInformrunninghostthatparametershavechangedPropagatenewaddressestoDNSSupportinter-servercommunicationProvideauthenticatedmessagedeliveryConfigureroutersandothernetworkequipmentDesignnetworkaddressingplanDetermineotherconfigurationparametersLocateotherserversThursday,May17,200713WhatDHCPdoesn’tdoSupportmuDHCP:MessagesOverviewSeveralmessagesaresentbackandforthbetweenaclientandtheDHCPserverbeforeitcansuccessfullyobtainanIPaddressThursday,May17,200714DHCP:MessagesOverviewSeveralDHCP:DISCOVERHardcodingtheaddressesofDHCPserverskindofdefeatsthepurposeofautomaticconfigurationSolution:AclientusingDHCPwillbroadcastaDISCOVERmessagetoallcomputersonitssubnet(addr55)tofigureouttheIPaddressofanyDHCPserversMostroutersareconfiguredtopassthisrequestwithinthecampusorenterpriseThursday,May17,200715DHCP:DISCOVERHardcodingtheaDHCP:OFFER(Optionally)sentfromserverinresponsetoaDISCOVERContainsanIPaddress,otherconfigurationinformationaswell(subnetmask,DNSservers,defaultgateway,searchdomains,etc)NotethatallDHCPserversthatreceiveaDISCOVERrequestmaysendanOFFER;sinceaclienttypicallydoesnotneedmorethanoneIPaddress,moremessagesneededtozeroononeIPThursday,May17,200716DHCP:OFFER(Optionally)sentfDHCP:REQUESTSentbyclienttorequestacertainIPaddressUsuallytheonesentbyanOFFER,butalsousedtorenewleases.AlsocanbesenttotrytogetsameaddressafterarebootThismessageisbroadcastMostOSsbydefaultwillsendaREQUESTforthefirstOFFERtheyreceive–thismeansthatifthereisarogueDHCPserveronyoursubnet,mostclientswillignoretheOFFERsfromthecampusDHCPservers(sincetheOFFERfromtherogueservergetstotheuser’sPCfirst)!Thursday,May17,200717DHCP:REQUESTSentbyclienttoDHCP:ACK/NACKSentbyserverinresponsetoaREQUESTACK:Requestaccepted,clientcanstartusingtheIPitREQUESTedNACK:Somethingiswrongwiththeclient’sREQUEST(forexampletheyrequestedanIPaddressthey’renotsupposedtohave)Thursday,May17,200718DHCP:ACK/NACKSentbyserveriDHCP:RELEASESentbyclienttoendaleaseNotstrictlyrequired,butisthe“polite”thingtodoifdonewiththeIP(couldjustlettheleaseexpire)SomeclientsmaynotsendRELEASEsinanattempttokeepthesameIPaddressforaslongaspossibleThursday,May17,200719DHCP:RELEASESentbyclienttoDHCP:BigPictureThursday,May17,200720DHCP:BigPictureThursday,MaySummaryDHCPworkstodayasatoolforautomaticconfigurationofTCP/IPhostsItisanopenInternetstandardandinteroperableclientimplementationsarewidelyavailableProvidesautomationforroutineconfigurationtasks,oncenetworkarchitecthasconfigurednetworkandaddressingplanOngoingworkwillextendDHCPwithauthentication,DHCP-DNSinteractionandinter-servercommunicationThursday,May17,200721SummaryDHCPworkstodayasatDHCP:ConclusionEfficientwayofassigningcomputersIPaddressesanddeliveringconfigurationinformationtothosecomputersDoesnotsolveotherproblemofaddressing–thatIPaddressesarehardtorememberThursday,May17,200722DHCP:ConclusionEfficientwayIETFstandardsFormalprocessfordevelopment,reviewandacceptanceofTCP/IPprotocolsuitestandardsInitialspecificationspublishedasInternetDrafts(I-Ds)AcceptedspecificationspublishedasRequestforComments(RFCs)Thursday,May17,200723IETFstandardsFormalprocessfProtocolstatusDHCPhasbeenacceptedasaDraftStandard;thespecificationsarepublishedin:RFC2131:DynamicHostConfigurationProtocolRFC2132:DHCPOptionsandBOOTPVendorExtensionsSeveraladditionaloptionsareindevelopmentThursday,May17,200724ProtocolstatusDHCPhasbeenaImplementationstatusDHCPisanopenstandard,withfreelyavailablespecificationsCanbe(andhasbeen)implementedentirelyfromthespecificationCommercialimplementationsarewidelyavailableNon-commericalimplementationsarealsoavailableThursday,May17,200725ImplementationstatusDHCPisaDHCPResourcesThursday,May17,200726DHCPResourcesThursday,May17DNS–DomainNameSystemThursday,May17,200727DNS–DomainNameSystemThursdSecondQuestionThursday,May17,200728SecondQuestionThursday,May1DomainNameSystem(DNS)Thursday,May17,200729DomainNameSystem(DNS)ThursdHostnamesThursday,May17,200730HostnamesThursday,May17,200DNS:BasicsHierarchicalnamespaceDistributedsystem–veryfewcoreserversStoresotherinformationthansimple
hostname<->IPmappingsRequest/responseprotocolThursday,May17,200731DNS:BasicsHierarchicalnamespDNSHierarchyeducomorginrpialbanyaciimcalThursday,May17,200732DNSHierarchyeducomorginrpialbHostnamestructureEachhostnameismadeupofasequenceoflabelsseparatedbyperiods.Eachlabelcanbeupto63charactersThetotalnamecanbeatmost255characters.Examples:
Thursday,May17,200733HostnamestructureEachhostnDomainNameThedomainnameforahostisthesequenceoflabelsthatleadfromthehost(leafnodeinthenamingtree)tothetopoftheworldwidenamingtree.Adomainisasubtreeoftheworldwidenamingtree.Thursday,May17,200734DomainNameThedomainnameforHierarchicalNamingcomedugovmilnetorgusarpacolordaocsfoobarThursday,May17,200735HierarchicalNamingcomedugovmiTopleveldomainsedu,gov,com,net,org,mil,…Countrieseachhaveatopleveldomain(2letterdomainname).Suchas.in,.uk,.it,etc.Newtopleveldomainsinclude:.Thursday,May17,200736Topleveldomainsedu,gov,comDomainNamingSystemeducomharvard…
mithbseewwwphysicscisco…
yahoonasa…
nsfarpa…
navyacm…
ieeegovmilorgnetukfrThursday,May17,200737DomainNamingSystemeducomharvDNS:ArchitectureDNSserversareresponsibleforoneormoredomainsofanylevel“Rootservers”aremaintainedthroughouttheworld(oneisinPaloAlto)andareresponsibleforallofthetop-leveldomainsWhenyouregisteradomain,anentryforthatdomainisaddedtotheappropriaterootserverOwnersofeachregulardomainorsubdomainmaintain(oroutsource)theirownDNSserverscontainingthecorrectinformationThursday,May17,200738DNS:ArchitectureDNSserversaNameServersPartitionhierarchyintozoneseducomprinceton…
mitcseeux01ux04physicscisco…
yahoonasa…
nsfarpa…
navyacm…
ieeegovmilorgnetukfrRootnameserverPrincetonnameserverCisconameserverCSnameserverEEnameserver……EachzoneimplementstwoormorenameserversPrimarysecondaryThursday,May17,200739NameServersPartitionhierarchHierarchicalAdministration-“Zones”arpacomingovmilnetorgusarpaaciimcalwwwThursday,May17,200740HierarchicalAdministration-Administration-ZonesAzoneisasubtreeoftheDNStreethatisindependentlymanagedSecond-leveldomains(“ac.in”)areusuallyanindependentzoneMostsub-domains(“iimcal.ac.in”)arealsoindependent.
Azonemustprovidemultiplenameservers.Thisserverrecordsthemembersinthedomain.Youtypicallyneedaprimarynameserverandoneormoresecondarynameservers.Secondaryretrievesinformationfromprimaryusingazonetransfer.Thursday,May17,200741Administration-ZonesAzoneiResolvinganaddressA.C.DwantstoknowaboutF.E.DACDEGBFHHost“A.C.D”asks“B.C.D”(thelocalnameserver)toresolve“F.E.D”NameserversThursday,May17,200742ResolvinganaddressA.C.DwantResolvinganaddressB.C.Ddoesn’tknowtheanswer.Itwantstoasktheprimarydomainserverforthe“E.D”domain,soitaskstheparentofthe“B.C”domain(“D”inthisexample)toresolve“E.D”.DasksH,therootserver.Hdoesn’tknowtheanswer,butit’sthetop-leveldomainandknowsthat“G.E.D”istheprimarydomainserverforthe“E.D”domainB.C.DnowknowstheprimarydomainserverfortheE.Ddomain,andcannowask“G.E.D”about“F.E.D”Thursday,May17,200743ResolvinganaddressB.C.DdoesDomainserversWhatkindofrecordscanberequestedforagivendomain?AddresstranslationCachinginformationMailserverinformationAuthoritativenameserverinformationHowisthisdatarequested?Eachrecordhasatypeandcertaindataassociatedwithit–clientsrequestrecordsofacertaintypefromaserverThursday,May17,200744DomainserversWhatkindofrecDNSOrganizationDistributedDatabaseTheorganizationthatownsadomainnameisresponsibleforrunningaDNSserverthatcanprovidethemappingbetweenhostnameswithinthedomaintoIPaddresses.So-somemachinerunbyRPIisresponsibleforeverythingwithinthedomain.Thursday,May17,200745DNSOrganizationDistributedDaDNSDBDNSDBDNSDistributedDatabaseThereisoneprimaryserverforadomain,andtypicallyanumberofsecondaryserverscontainingreplicateddatabases.DNSDBAuthoritativeDNSDBReplicasDNSserverThursday,May17,200746DNSDistributedDNSClientsADNSclientiscalledaresolver.Acalltogethostbyname()ishandledbyaresolver(typicallypartoftheclient).MostUnixworkstationshavethefile/etc/resolv.confthatcontainsthelocaldomainandtheaddressesofDNSserversforthatdomain.Thursday,May17,200747DNSClientsADNSclientiscal/etc/resolv.confdomainThursday,May17,200748/etc/resolv.confdomainnslookupnslookupisaninteractiveresolverthatallowstheusertocommunicatedirectlywithaDNSserver.nslookupisusuallyavailableonUnixworkstations.(digandhostarealsoDNSclients).Thursday,May17,200749nslookupnslookupisaninteracDNSServersServershandlerequestsfortheirdomaindirectly.ServershandlerequestsforotherdomainsbycontactingremoteDNSserver(s).Serverscacheexternalmappings.Thursday,May17,200750DNSServersServershandlerequServer-ServerCommunicationIfaserverisaskedtoprovidethemappingforahostoutsideit’sdomain(andthemappingisnotintheservercache):Theserverfindsanameserverforthetargetdomain.TheserverasksthenameservertoprovidethehostnametoIPtranslation.Tofindtherightnameserver,useDNS!Thursday,May17,200751Server-ServerCommunicationIDNSDataDNSdatabasescontainmorethanjusthostname-to-addressrecords:Nameserverrecords NSHostnamealiases CNAMEMailExchangers MXHostInformation HINFOThursday,May17,200752DNSDataDNSdatabasescontainTheRootDNSServerTherootserverneedstoknowtheaddressof1st(andmany2nd)comorgjpalbanyrpiThursday,May17,200753TheRootDNSServerTherootseServerOperationIfaserverhasnoclueaboutwheretofindtheaddressforahostname,asktherootserver.Therootserverwilltellyouwhatnameservertocontact.Arequestmaygetforwardedafewtimes.Thursday,May17,200754ServerOperationIfaserverhDNSMessageFormatThursday,May17,200755DNSMessageFormatThursday,MaDNSMessageHeaderqueryidentifierflags#ofquestions#ofRRs#ofauthorityRRs#ofadditionalRRs16bitfieldsResponse}Thursday,May17,200756DNSMessageHeaderqueryidentiMessageFlagsQR:Query=0,Response=1AA:AuthoritativeAnswerTC:responsetruncated(>512bytes)RD:recursiondesiredRA:recursionavailablercode:returncodeThursday,May17,200757MessageFlagsQR:Query=0,RespRecursionArequestcanindicatethatrecursionisdesired-thistellstheservertofindouttheanswer(possiblybycontactingotherservers).Ifrecursionisnotrequested-theresponsemaybealistofothernameserverstocontact.Thursday,May17,200758RecursionArequestcanindicatQuestionFormatName:domainname(orIPaddress)Querytype(A,NS,MX,…)Queryclass(1forIP)Thursday,May17,200759QuestionFormatName:domainnaResponseResourceRecordDomainNameResponsetypeClass(IP)Timetolive(inseconds)LengthofresourcedataResourcedataThursday,May17,200760ResponseResourceRecordDomainUDP&TCPBothUDPandTCPareused:TCPfortransfersofentiredatabasetosecondaryservers(replication).UDPforlookupsIfmorethan512bytesinresponse-requestorresubmitsrequestusingTCP.Thursday,May17,200761UDP&TCPBothUDPandTCPareLotsmoreThisisnotacompletedescription!Ifinterested-lookat:RFC1034:DNSconceptsandfacilities.RFC1035:DNSimplementationandprotocolspecification.playwithnslookup.LookatcodeforBIND(DNSservercode).Thursday,May17,200762LotsmoreThisisnotacompletNametoAddressConversionThereisalibraryoffunctionsthatactasDNSclient(resolver).youdon’tneedtowriteDNSclientcodetouseDNS!WithsomeOSsyouneedtoexplicitlylinkwiththeDNSresolverlibrary:-lnsl(nslis“NameServerLibrary”)Suns(Solaris)needthis!Thursday,May17,200763NametoAddressConversionTherDNSlibraryfunctionsgethostbynamegethostbyaddrgethostbyname2IPV6!Thursday,May17,200764DNSlibraryfunctionsgethostbygethostbynamestructhostent*gethostbyname(constchar*hostname);structhostentisdefinedinnetdb.h:#include<netdb.h>Thursday,May17,200765gethostbynamestructhostent*gstructhostentstructhostent{ char*h_name; char**h_aliases; inth_addrtype; inth_length; char**h_addr_list;};officialname(canonical)othernamesAF_INETorAF_INET6addresslength(4or16)
arrayofptrstoaddressesThursday,May17,200766structhostentstructhostent{hostentpictureh_nameh_aliasesh_addrtypeh_lengthh_addr_listOfficialNamealias1alias2nullIPaddress1IPaddress2nullThursday,May17,200767hostentpictureh_nameOfficialWhichAddress?Onsuccess,gethostbynamereturnstheaddressofahostentthathasbeencreated.hasanarrayofptrstoIPaddressesUsuallyusethefirstone:#defineh_addrh_addr_list[0]Thursday,May17,200768WhichAddress?Onsuccess,gethgethostbynameanderrorsOnerrorgethostbynamereturnnull.Gethostbynamesetstheglobalvariableh_errnotoindicatetheexacterror:HOST_NOT_FOUNDTRY_AGAINNO_RECOVERYNO_DATANO_ADDRESSAlldefinedinnetdb.hThursday,May17,200769gethostbynameanderrorsOnerrGettingattheaddress:
char**h_addr_list;h=gethostbyname("");sockaddr.sin_addr.s_addr= *(h->h_addr_list[0]);Thiswon'twork!!!!
h_addr_list[0]isachar*!Thursday,May17,200770Gettingattheaddress:
char*UsingmemcpyYoucancopythe4bytes(IPv4)directly:h=gethostbyname("");memcpy(&sockaddr.sin_addr, h->h_addr_list[0],sizeof(structin_addr));
Thursday,May17,200771UsingmemcpyYoucancopythe4NetworkByteOrderAlltheIPaddressesreturnedviathehostentareinnetworkbyteorder!Repeatafterme:"Thankyougethostbyname!"Thursday,May17,200772NetworkByteOrderAlltheIPagethostbyaddrstructhostent*gethostbyaddr(constchar*addr size_tlen, intfamily);AF_INET(couldbeAF_INET6)sizeof(structin_addr)Thursday,May17,200773gethostbyaddrstructhostent*gSomeotherfunctionsuname
:gethostnameoflocalhostgetservbyname
:getportnumberforanamedservicegetservbyaddr
:getnameforserviceassociatedwithaportnumberThursday,May17,200774Someotherfunctionsuname:geReferencesRFC1034RFC1035Thursday,May17,200775ReferencesRFC1034Thursday,MaSNMP-SimpleNetworkManagementProtocolThursday,May17,200776SNMP-SimpleNetworkManagemeThirdQuestionThursday,May17,200777ThirdQuestionThursday,May17SNMPis…AnetworkmanagementtoolDesignedtoallowdataacquisitionfromSNMPcapablenetworkequipmentAllowscontrolofSNMPcapableequipmentbythedistantcontrollerBasedoninquiry/responsearchitecturewithsimpleresponseparametersThursday,May17,200778SNMPis…AnetworkmanagementUsedformanagementoffaultconditions–preventionofandresponsetonetworkfailureDesignedtomanageperformance–copingwithdeteriorationofperformanceduetocongestion,changingtrafficconditionsSNMPis…Thursday,May17,200779UsedformanagementoffaultcSNMPMessageProtocolMessagesuseUDP,ports161(requests/responses)and162(notifications)Messagetypes:GetRequest:requestvaluesofvariablesfromdeviceGetNextRequest:requestvalueofvariablefollowingtheonesuppliedGetResponse:returnvaluesSetRequest:instructdevicetosetvaluesofvariablesTrap:fromdevice-notifymonitor/managerofvaluechangeThursday,May17,200780SNMPMessageProtocolMessagesToknowmoreonSNMP“EssentialSNMP”,DouglasRMauro&KevinJSchmidt,ShroffPublishers&Distributors,Calcutta,2001Thursday,May17,200781ToknowmoreonSNMPThursday,树立质量法制观念、提高全员质量意识。12月-2212月-22Thursday,December29,2022人生得意须尽欢,莫使金樽空对月。09:04:4509:04:4509:0412/29/20229:04:45AM安全象只弓,不拉它就松,要想保安全,常把弓弦绷。12月-2209:04:4509:04Dec-2229-Dec-22加强交通建设管理,确保工程建设质量。09:04:4509:04:4509:04Thursday,December29,2022安全在于心细,事故出在麻痹。12月-2212月-2209:04:4509:04:45December29,2022踏实肯干,努力奋斗。2022年12月29日9:04上午12月-2212月-22追求至善凭技术开拓市场,凭管理增创效益,凭服务树立形象。29十二月20229:04:45上午09:04:4512月-22严格把控质量关,让生产更加有保障。十二月229:04上午12月-2209:04December29,2022作业标准记得牢,驾轻就熟除烦恼。2022/12/299:04:4509:04:4529December2022好的事情马上就会到来,一切都是最好的安排。9:04:45上午9:04上午09:04:4512月-22一马当先,全员举绩,梅开二度,业绩保底。12月-2212月-2209:0409:04:4509:04:45Dec-22牢记安全之责,善谋安全之策,力务安全之实。2022/12/299:04:45Thursday,December29,2022相信相信得力量。12月-222022/12/299:04:4512月-22谢谢大家!树立质量法制观念、提高全员质量意识。12月-2212月-22DHCP,DNS,SNMPDebashisSahaMISGroup,IIMCalcuttads@iimcal.ac.in83DHCP,DNS,SNMP1FirstQuestionThursday,May17,200784FirstQuestionThursday,May17TheInternetandAddressingAllmachinesontheInternetareaccessedviatheirIPaddressDottedquad:xxx.xxx.xxx.xxxProblem:IPaddressesarehardtorememberandhardtostaticallyassignonlargenetworksSolution:NeedtocomeupwithawaytoautomaticallyassignIPaddressesandatextbasedrepresentationofmachineaddressesinsteadofjust4numbersThursday,May17,200785TheInternetandAddressingAllAddressingSolutionsTwoprotocolshavebeendevelopedtosolvetheseproblemsDHCP–automaticnetworkconfiguration(includingIPaddress)DNS–translatestextualbasednamesintoIPaddressesandviceversaThursday,May17,200786AddressingSolutionsTwoprotocDHCP–DynamicHostConfigurationProtocolThursday,May17,200787DHCP–DynamicHostConfiguratDHCPAllowsclientmachinestoreceiveanIPaddress,DNSinformation,etcautomaticallyBeforeDHCPcameintouse,usershadtotypeinallthisinformationbyhand,whichisbad:EasytomistypesomethingwhenenteringbyhandManuallychangingnetworkconfigurationeverytimeyoumoveyourlaptopisapainBootpresolvedsomeoftheseissues…andDHCPstillusesthesameportasbootpThursday,May17,200788DHCPAllowsclientmachinestoPurposeofDHCP FromRFC-2131(theInternetstandard):TheDynamicHostConfigurationProtocol(DHCP)providesaframeworkforpassingconfigurationinformationtohostsonaTCP/IPnetwork.DHCPconsistsoftwocomponents:aprotocolfordeliveringhost-specificconfigurationparametersfromaDHCPservertoahostandamechanismforallocationofnetworkaddressestohosts.Thursday,May17,200789PurposeofDHCP FromRFC-2131DHCPfunctionalgoalsAhostwithoutavalidIPaddresslocatesandcommunicateswithaDHCPserverADHCPserverpassesconfigurationparameters,includinganIPaddress,tothehostTheDHCPservermaydynamicallyallocateaddressestohostsandreuseaddressesHostscandetectwhentheyrequireanewIPaddressUnavailabilityofDHCPserverhasminimaleffectonoperationofhostsThursday,May17,200790DHCPfunctionalgoalsAhostwiDHCP:BasicsAclientleasesanIPaddressfromaDHCPserverforagivenamountoftimeWhenleaseexpires,theclientmustaskDHCPserverforanewaddress(clientsattempttorenewleaseafter50%oftheleasetimehasexpired)Typicalleasesmaylastforfrom30secondsto24hours,orevenlonger.Thursday,May17,200791DHCP:BasicsAclientleasesanWhatdoesDHCPdo?Providesprotocolstack,applicationandotherconfigurationparameterstohostsEliminatesneedforindividual,manualconfigurationforhostsIncludesadministrativecontrolsfornetworkadministratorsBackwardcompatiblepacketformatforBOOTPinteroperation(RFC1542)Cancoexistwithhoststhathavepre-assignedIPaddressesandhoststhatdonotparticipateinDHCPThursday,May17,200792WhatdoesDHCPdo?ProvidesproDesignGoalsEliminatemanualconfigurationofhostsPreventuseofanyIPaddressbymorethanonehostShouldnotrequireaserveroneverysubnetAllowformultipleDHCPserversProvideamechanism,notapolicyProvidethesameconfiguration-includingIPaddress-toahostwheneverpossibleThursday,May17,200793DesignGoalsEliminatemanualcWhatcanyoudowithDHCPPlug-and-playMovedesktopPCsbetweenofficesRenumberOtherrestructuring-changesubnetmasksMobileIP-laptopsMovingequipment-cartableThursday,May17,200794WhatcanyoudowithDHCPPlug-WhatDHCPdoesn’tdoSupportmultipleaddressesperinterfaceInformrunninghostthatparametershavechangedPropagatenewaddressestoDNSSupportinter-servercommunicationProvideauthenticatedmessagedeliveryConfigureroutersandothernetworkequipmentDesignnetworkaddressingplanDetermineotherconfigurationparametersLocateotherserversThursday,May17,200795WhatDHCPdoesn’tdoSupportmuDHCP:MessagesOverviewSeveralmessagesaresentbackandforthbetweenaclientandtheDHCPserverbeforeitcansuccessfullyobtainanIPaddressThursday,May17,200796DHCP:MessagesOverviewSeveralDHCP:DISCOVERHardcodingtheaddressesofDHCPserverskindofdefeatsthepurposeofautomaticconfigurationSolution:AclientusingDHCPwillbroadcastaDISCOVERmessagetoallcomputersonitssubnet(addr55)tofigureouttheIPaddressofanyDHCPserversMostroutersareconfiguredtopassthisrequestwithinthecampusorenterpriseThursday,May17,200797DHCP:DISCOVERHardcodingtheaDHCP:OFFER(Optionally)sentfromserverinresponsetoaDISCOVERContainsanIPaddress,otherconfigurationinformationaswell(subnetmask,DNSservers,defaultgateway,searchdomains,etc)NotethatallDHCPserversthatreceiveaDISCOVERrequestmaysendanOFFER;sinceaclienttypicallydoesnotneedmorethanoneIPaddress,moremessagesneededtozeroononeIPThursday,May17,200798DHCP:OFFER(Optionally)sentfDHCP:REQUESTSentbyclienttorequestacertainIPaddressUsuallytheonesentbyanOFFER,butalsousedtorenewleases.Alsocanbesenttotrytogetsameaddre
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025教师公寓出租合同样本
- 2025车辆承包合同范本
- 电信诈骗的分析与对策
- 科技节庆活动的多元策划与实施经验
- 趣味数学课堂寓教于乐的秘密武器
- 2024年智慧物流投资申请报告
- 2024年农业运输机械项目资金筹措计划书代可行性研究报告
- 二零二五年度酒店客房预订取消退款合同4篇
- 二零二五年度创业型企业环保设施改造升级与合规审查合同4篇
- 2025年北师大版九年级生物上册阶段测试试卷
- 2025年上半年江苏连云港灌云县招聘“乡村振兴专干”16人易考易错模拟试题(共500题)试卷后附参考答案
- DB3301T 0382-2022 公共资源交易开评标数字见证服务规范
- 人教版2024-2025学年八年级上学期数学期末压轴题练习
- 江苏省无锡市2023-2024学年八年级上学期期末数学试题(原卷版)
- 俄语版:中国文化概论之中国的传统节日
- 2022年湖南省公务员录用考试《申论》真题(县乡卷)及答案解析
- 妇科一病一品护理汇报
- 哪吒之魔童降世
- 2022年上海市各区中考一模语文试卷及答案
- 2024年全国统一高考数学试卷(新高考Ⅱ)含答案
- 我国无菌包装行业消费量已超千亿包-下游需求仍存扩容潜力
评论
0/150
提交评论