Next Previous Contents

3. H anatomia twn ari8mwn IP

Prin proxwrhsoyme sthn apolaysh ths ypodiktuwshs (sub-networking) , xreiazetai na 8esoyme ta basika sxetika me tis diey8unseis IP.

3.1 Oi diey8unseis IP anhkoyn se interface - OXI se host!

Prwta ap'ola, as jeka8arisoyme merikes basikes aities parejhghshs - oi ari8moi IP den anati8entai se host. Oi ari8moi IP anati8entai se interface diktuwn poy exoyn oi host.

Eeee - Ti einai ayto?

Enw polloi (an oxi oi perissoteroi) ypologistes se ena diktyo IP 8a katexoyn ena mono interface diktuoy (kai exoyn ena mono ari8mo IP sa synepeia), aytos den einai o monos tropos poy ginontai ta pragmata. Oi ypologistes ka8ws kai alles syskeyes mporoun na exoyn diafora (an oxi polla) interface diktuoy -kai ka8e interface na exei ton diko toy ari8mo IP.

Etsi mia syskeyh me 6 diaforetika interface (opws enas dromologhths - router) 8a exei 6 ari8mous IP- enan gia ka8e interface gia ka8e diktyo sto opoio einai syndedemenos. H aitia gi' ayto einai profanhs otan koitajoyme ena diktyo IP!

Parol' ayta, oi perissoteroi anaferontai se host diey8unseis otan anaferontai se ari8mous IP. Apla na 8ymaste, ayto einai mia eykolia gia ton ari8mo IP toy sygkekrimenoy interface se ayton ton host. Polles (an oxi oi pleiochfia) twn syskeywn sto Internet exoyn monadiko interface kai epomenws monadiko ari8mo IP.

3.2 Oi ari8moi IP san "Tetrades me teleies"

Sthn sygkekrimenh (IPv4) ylopoihsh twn ari8mwn IP, aytoi apotelountai apo 4 byte (1 byte=8 bit) - dinontas ena sunolo 32 bit dia8esimhs plhroforias. Ayto katalhgei se ari8mous poy einai mallon megaloi (akoma kai otan einai grammenoi se dekadikh morfh). Etsi gia anagnwsimothta (ka8ws kai gia logoys organwshs) oi ari8moi IP einai synh8ws grammenoi se morfh 'tetradas me teleies' ('dotted quad'). O IP ari8mos

        192.168.1.24

einai ena paradeigma aytou- 4 (dekadikoi) ari8moi diaxwrizomenoi apo (.) teleies.

Ka8ws ka8e enas apo toys 4 ari8mous einai h dekadikh anaparastash enos byte twn 8 bit, ka8e enas apo toys 4 ari8mous mporei na einai apo 0 ews 255 (dhladh 256 monadikes times - 8ymh8eite, to 0 einai kai ayto mia timh).

Epipleon, meros toy ari8mou IP enos host prosdiorizei to diktyo sto opoio o host edreuei, ta ypoloipa 'bit' toy ari8mou IP prosdiorizoyn to idio to host (oyps... -to interface toy diktuoy). Akribws to posa bit xrhsimopoiountai gia to ID toy diktuoy kai posa einai dia8esima gia na prosdiorizoyn host (interface) se ayto to diktyo orizetai apo thn 'klash' ('class') toy diktuoy.

3.3 Klaseis twn Diktuwn IP

Yparxoyn treis klaseis ari8mwn IP

Anakefalaiwsh:

        Tajh diktuoy    Xrhsimo euros timwn toy 1oy byte (dekadiko)
                A (1h)  1 ews 126
                B (2h)  128 ews 191
                C (3h)  192 ews 254

Yparxoyn epishs eidikes diey8unseis poy einai desmeymenes gia 'mh syndedemena' diktya - ayta einai diktya poy xrhsimopoioun IP alla den einai syndedemena sto Internet, oi diey8unseis aytes einai:

8a parathrhsete oti to keimeno ayto xrhsimopoiei aytes tis allhloyxies diey8unsewn gia na apofeyx8ei to mperdema me 'pragmatika' diktya kai host.

3.4 Oi ari8moi diktuwn, diey8unseis interface, diey8unseis anakoinwshs (broadcast addresses)

Oi ari8moi IP mporei na exoyn treis pi8anes shmasies:

Gia anakefalaiwsh kai gia na jeka8arisoyme ta pragmata

Gia ena diktyo klashs A ...
(ena byte toy xwroy dieu8ynshs toy diktuoy akoloy8oumeno apo tria 
byte toy xwroy dieu8ynshs toy host)

        10.0.0.0 einai enas ari8mos, diktuoy klashs A giati ola ta host
                bit toy xwroy dieu8ynshs, einai 0
        10.0.1.0 einai h dieu8ynsh enos host se ayto to diktyo
        10.255.255.255.255 einai h dieu8ynsh anakoinwshs/ekpomphs (broadcast) aytou toy diktuoy
                giati ola ta host bit toy xwroy dieu8ynshs einai 1

Gia ena diktyo klashs B ...
(duo byte toy xwroy dieu8ynshs diktuoy akoloy8oumena apo duo byte toy 
xwroy dieu8ynshs toy host)

        172.17.0.0 einai enas ari8mos diktuoy klashs B
        172.17.0.1 einai h dieu8ynsh enos host se ayto to diktyo
        172.17.255.255 einai h dieu8ynsh anakoinwshs/ekpomphs aytou toy diktuoy

Gia ena diktyo klashs C...
(tria byte toy xwroy dieu8ynshs diktuoy akoloy8oumena apo ena byte toy 
xwroy dieu8ynshs toy host)

        192.168.3.0 einai enas ari8mos diktuoy klashs C
        192.168.3.42 einai h dieu8ynsh enos host se ayto to diktyo
        192.168.3.255 einai h dieu8ynsh ekpomphs/anakoinwshs aytou toy diktuoy

sxedon oloi oi ari8moi diktuoy IP poy paramenoyn dia8esimoi gia desmeysh pros to paron einai diey8unseis klashs C.

3.5 H maska diktuoy (network mask)

H maska diktuoy legetai swstotera maska ypodiktuoy (subnetwork mask). Omws, genika anaferomaste se ayth ws h maska diktuoy.

H maska diktuoy kai oi epiptwseis ths sth metafrash twn diey8unsewn IP, topika, se ena kommati diktuoy IP, poy kyriws mas afora edw, ka8ws ayto ka8orizei poia (an yparxei kapoia) ypo-diktuwsh lambanei xwra.

H klassikh maska (ypo-) diktuoy einai ola ta bit toy diktuoy mias dieu8ynshs '1' kai ola ta host bit '0'. Ayto shmainei oti oi klassikes maskes diktuoy gia tis treis klaseis diktuwn einai:

Yparxoyn duo shmantika pragmata poy prepei na 8ymatai kaneis gia thn maska diktuoy:


Next Previous Contents