HCP dynamic host allocation raws tu qauv yog dav siv nyob rau hauv niaj hnub siv Internet, xws li hauv tsev Internetrouteryog DHCP server. Thaum peb teeb tsa tus neeg siv khoom kom tau txais IP chaw nyob, DHCP server muab qhov chaw nyob IP rau tus neeg siv khoom raws li DHCP raws tu qauv.ONUtuaj yeem siv ua DHCP servers.
DHCP raws tu qauv cia li faib IP pob ntawv ntawm plaub hom loj:
DHCP Discover: Xa tawm los ntawm tus neeg siv khoom kom pom DHCP server.
DHCP Muab: Xa los ntawm DHCP server, qhia tus neeg siv khoom tias kuv tuaj yeem muab qhov chaw nyob IP.
DHCP Thov: Xa los ntawm tus neeg siv khoom qhia rau DHCP server uas kuv xav tau tus IP chaw nyob.
DHCP ACK: Tshaj tawm los ntawm DHCP server los muab IP chaw nyob ntawm tus neeg siv khoom teb.
DHCP Tso Tawm: Feem ntau, tus neeg siv khoom raug kaw lossis offline. Cov lus no yuav ua rau DHCP server tso tawm IP chaw nyob ntawm tus neeg siv khoom xa cov lus no.
DHCP Qhia: Cov lus xa los ntawm tus neeg siv khoom thov qee cov ntaub ntawv los ntawm lub server.
DHCP Tsis Txaus Siab: Thaum tus neeg siv pom tias IP chaw nyob uas muab los ntawm server tsis muaj (xws li IP chaw nyob tsis sib haum), cov lus no tau tshaj tawm qhia rau lub server tiv thaiv kev siv IP chaw nyob.
Thaum DHCP kev sib txuas lus, UDP yog siv raws li kev sib kis. Tus tswv tsev xa ib daim ntawv thov mus rau DHCP server chaw nres nkoj 67 thiab tus neeg rau zaub mov teb cov lus rau tus tswv chaw nres nkoj 68.
1. Lub sijhawm tshawb pom, qhov twg tus neeg siv DHCP nrhiav rau DHCP server (DHCPdiscover)
Tus neeg siv DHCP xa DHCPdiscover cov ntaub ntawv tshawb nrhiav kom pom DHCP server hauv hom kev tshaj tawm (vim IP chaw nyob ntawm DHCP server tsis paub rau tus neeg siv), uas yog, cov ntaub ntawv tshaj tawm tshwj xeeb rau qhov chaw nyob 255.255.255.255. Txhua tus tswv ntawm lub network nrog TCP / IP raws tu qauv yuav tau txais cov lus tshaj tawm no, tab sis tsuas yog DHCP server yuav teb.
2.Provision theem, qhov twg DHCP server muab tus IP chaw nyob (DHCPoffer)
Txhua tus neeg rau zaub mov DHCP hauv lub network uas tau txais DHCPdiscover nrhiav tau teb los ntawm kev xaiv ib qho ntawm IP chaw nyob uas tseem tsis tau xauj rau DHCP tus neeg siv khoom thiab xa DHCPoffer muab uas muaj IP chaw nyob thiab lwm qhov chaw rau DHCP tus neeg siv khoom.
3. Lub sijhawm xaiv, uas tus neeg siv khoom DHCP xaiv qhov chaw nyob IP muab los ntawm DHCP server (DHCPrequest)
Yog tias muaj ntau tshaj ib tus neeg rau zaub mov DHCP muab cov ntaub ntawv rau DHCPoffer xa los ntawm DHCP tus neeg siv khoom, tus neeg siv khoom DHCP tsuas lees txais thawj DHCPoffer muab cov ntaub ntawv tau txais, thiab tom qab ntawd nws teb DHCPrequest thov cov ntaub ntawv hauv hom kev tshaj tawm. Cov ntaub ntawv no muaj kev thov rau tus IP chaw nyob ntawm DHCP server ntawm nws xaiv. Qhov laj thawj los teb rau hauv hom kev tshaj tawm yog qhia rau txhua tus DHCP servers tias nws yuav xaiv qhov chaw nyob IP muab los ntawm DHCP server.
4. Cov theem kev lees paub, uas DHCP server lees paub qhov chaw nyob IP (DHCPack)
Thaum DHCP neeg rau zaub mov tau txais DHCPrequest cov ntaub ntawv thov teb los ntawm DHCP tus neeg siv khoom, nws xa DHCPack cov lus lees paub rau DHCP tus neeg siv nrog tus IP chaw nws muab thiab lwm qhov chaw qhia rau DHCP tus neeg siv khoom tias nws tuaj yeem siv qhov chaw nyob IP nws tau muab. Tus neeg siv DHCP tom qab ntawd khi nws TCP / IP raws tu qauv rau daim npav network, thiab tag nrho cov DHCP servers, tshwj tsis yog ib qho uas tau xaiv los ntawm DHCP tus thov kev pab, rov qab muab IP chaw nyob.
5. Re-login (DHCPrequest)
Nyob rau hauv lub neej yav tom ntej, txhua zaus tus neeg siv DHCP nkag rau hauv lub network dua, nws tsis tas yuav xa DHCPdiscover cov ntaub ntawv tshawb pom dua, tab sis xa ncaj qha xa DHCPrequest cov ntaub ntawv thov uas muaj qhov chaw nyob IP yav dhau los. Thaum DHCP neeg rau zaub mov tau txais cov ntaub ntawv no, nws sim cia tus neeg siv DHCP txuas ntxiv siv qhov chaw nyob IP qub thiab teb nrog DHCPack lees paub. Yog tias qhov chaw nyob IP tsis tuaj yeem raug xa mus rau tus thawj DHCP tus neeg siv khoom (yog tias tus IP chaw nyob twb tau muab rau lwm tus neeg siv DHCP), DHCP server teb cov lus tsis lees paub DHCPnack rau DHCP tus neeg siv khoom. Thaum tus thawj DHCP tus neeg siv tau txais cov lus tsis lees paub DHCPnack no, nws yuav tsum rov xa DHCPdiscover cov lus nrhiav kom tau thov qhov chaw nyob IP tshiab.
6. Hloov daim ntawv xauj tsev
Tus IP chaw nyob uas tau xauj los ntawm DHCP neeg rau zaub mov rau DHCP tus neeg siv feem ntau muaj lub sijhawm xauj tsev, tom qab ntawd tus neeg rau zaub mov DHCP yuav rov qab qhov chaw nyob IP uas xauj. Yog tias tus neeg siv DHCP xav txuas ntxiv nws daim ntawv xauj tsev IP, nws yuav tsum rov ua dua nws daim ntawv xauj tsev. Tus neeg siv DHCP cia li xa cov ntaub ntawv mus rau DHCP neeg rau zaub mov kom hloov kho nws daim ntawv xauj tsev IP ob qho tib si thaum tus neeg siv DHCP pib thiab thaum daim ntawv xauj tsev IP yog ib nrab.
DHCP dynamic host faib kuj yog ib qho ntawm pebONUseries network khoom, thiab peb muaj feem xyuam nrog network kub khoom npog ntau homONUseries khoom, nrog rau ACONU/ kev sib txuas lusONU/ ntseONU/ lub thawvONU/ dual PON chaw nres nkojONUthiab lwm yam. Cov saum toj noONUseries cov khoom yuav siv tau rau cov kev cai network ntawm ntau yam scenarios.Zoo siab txais tos kom muaj kev nkag siab ntau ntxiv txog cov khoom.