Adresa hostitele

Koncept adresy hostitele

ThenetworkpartofanIPaddressiscalledanetworknumberornetworkaddress,andthehostcandirectlycommunicatewithdeviceswiththesamenetworknumber

Inthecaseofnoconnecteddevice,evenifthesamephysicalnetworksegmentisshared,communicationcannotbecarriedoutifthenetworknumberisdifferent,anditmustbeforwardedthroughadevicewitharoutingfunction.

ThenetworkaddressoftheIPaddressenablestheroutertoplacethepacketonthecorrectnetworksegment,andthehostnumberaftertheIPaddressnetworknumberenablestheroutertotransmitthepacketencapsulatedbythetwo-layerframetooneonthenetworkForaspecifichost,thehostnumberandMACaddressaremappedcorrectly.Thekeyissueinthisistousethesubnetmasktodetermineorobtainthenetworkaddressinformationoftheremotehost.Thepartafterthenetworkaddressisthehostaddress.

Thenetworkaddressesofthesamenetworkmustbethesame,butthehostaddressesofthesamenetworkmustbedifferent,sothatthehostsinthesamenetworkcancommunicatedirectly.Thenetworkinthiscaseiscalledaflatnetwork,suchas:192.168.1.1/24,and192.168.1.2/24,thenetworkIDisthesame,thehostIDisdifferent.Ifthecommunicationbetweenhostsonthesamenetworkmustbeforwardedthroughthedevice,thenetworkinthiscaseiscalledahierarchicalnetwork.

Typ adresy hostitele

GuidebyIPaddressBit(highestbit)todistinguishdifferenttypesofIPaddresses:

(Poznámka: nisthenetworknumberbit, histhehostnumberbit)

ClassAaddress

Adresa třídy: 0nnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh

TřídaAdresa má 7místné číslo sítě, takže lze definovat 126 třídAsítí{2^7-1(číslo sítě nemůže být vše0)-1(číslo sítě nemůže být vše1 a 127je adresa zpětné smyčky)}Počet hostitelů každé sítě může být 16777214(1)Nemůže být všech 24

Rozsah desetinného vyjádření: 1.0.0.1-127.255.255.255, jakákoli adresa sítě mezi 0 a 127 je adresa třídy.

Adresa třídy

Adresa třídy: 10nnnnnn.nnnnnnnn.hhhhhhhhh.hhhhhhhh

Adresa třídy má 14bitové číslo sítě, takže lze definovat 16382Bsíť třídy{2^14-2}

Počet hostitelů, které každá síť může mít, je 65534{2^16-2}

Desetinný rozsah reprezentace: 128.0.0.1-191.255.255.255, jakákoli adresa sítě mezi 128 a 191 je adresa třídy.

Adresa typu C

Adresa typu C: 110nnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh

Adresa typu C má 21bitové číslo sítě, takže lze definovat adresu třídy 2097152Cs{2^21-2}

Počet hostitelů, které každá síť může mít, je 254{2^8-2}

Desetinný rozsah reprezentace: 192.0.0.1-223.255.255.255, jakákoli adresa sítě mezi 192 a 223 je třídaCaddress.

Adresa třídy

Adresa třídy:1110xxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx

Adresa třídyisusedformulticast,thefirst4digits1110guide,theback28bitsarethemulticastaddressID.

Rozsah desetinného vyjádření:224.0.0.0-239.255.255.255

ClassEaddress

ClassEaddress:vždy vede s 1111 čtyřmi číslicemi

Pro účely výzkumu se používají adresy třídy.

Rozsah desetinného vyjádření: 240-

IPaddressesareuniformlyallocatedbyInterNIC(InternetInformationCenter)toensuretheuniquenessofIPaddresses.However,thereisatypeofIPaddressthatcanbeuseddirectlyinthecorporateintranetwithoutapplyingforit.ThisisPrivateAddress.PrivateAddresswillnotbeforwardedbyanyrouterontheINTERNET.ToaccesstheINTERNET,itmustbeconvertedthroughNAT/PATtoapublicIP.Formaccess.

Tyto soukromé adresy jsou:

10.0.0.0-10.255.255.255(aClassAaddress)

172.16.0.0-172.31.255.255 (adresa třídy 16BC)

192.168.0.0 – 192.168.255.255 (256ClassCaddresses)

Anynetworkaddressbetween224and239inthefirstoctetisagroupBroadcastaddress

Lze použít jakoukoli soukromou IP síť, včetně:

1ClassAaddress (10.0.0.0),

16 tříd adres (od 172.16.0.0 do 172.31.0.0)

256ClassCaddresses (od 192.168.0.0 do 192.168.255.0)

jakákoli adresa včetně

Související články
HORNÍ