110 likes | 198 Views
IP addressing Számítógép networkok gyakorlata. ÓBUDAI EGYETEM 2011 TAVASZI FÉLÉV 3. LABORGYAKORLAT PRÉM DÁNIEL. IP address. Logical addressing 32 bit integer IP address can be split into two parts : network and host ID. IP address properties.
E N D
IP addressingSzámítógép networkok gyakorlata ÓBUDAI EGYETEM 2011 TAVASZI FÉLÉV 3. LABORGYAKORLAT PRÉM DÁNIEL
IP address • Logicaladdressing • 32 bit integer • IP addresscan be splitintotwoparts: network and host ID
IP addressproperties • Network ID is the same at each host inone network. Host ID has to be different • Routers use the network ID when forwarding packages. • Onehostcanhavemultipleinterfaces– each interface connects to a different network
History of IP classes • Back inthedarkagesthefirst 8 bits were the network ID, the rest wasthehostid • Itwasrealizedsoonhowsmalthatnumber is. • In 1981 theClassful Network achitecturewascreated. Itdescribed 5 classes that were self explanatory from the IP address (A, B, C, D, E) • Scalabilitywas an issue even using this architecture, so in 1993 ”ClasslessInter-DomainRouting” (CIDR) architecturewasinventedwhichusesvariablelengthnetwork ID
Private IP ranges • Oftenit is necessarytoconnectdevices to the network, but not to the internet. RFC 1918 managestheprivate IP addressesthatcannot appear on the internet, but are reserved for private use. • Private IP rangesmanagedbyIANA: • example:- 192.168.1.0/24 (mask: 255.255.255.0 | 256 hosts) - 256networks- 172.17.0.0/16 (mask: 255.255.0.0 | 65.536 hosts) 256 networks
Virtualnetworkinterface • Sometimesit is necessaryforhoststoprovideservicesthathaveto be used by itself. • Suchservicesareprovided through the loopback network. • The loopbackdevice is implemented in software only • Canniotappearonthe web • Speciális címe a localhost ami a 127.0.0.1 IP cím.
Network and broadcast addresses • networki cím:IP addressfull of zeroes • xx.xx.xx.0 • Broadcast cím:IP addressfull of ones • xx.xx.xx.255
Subnet mask • Furthersubcategorizethenetwork • 32 bit number
Subnetmaskexample • 192.168.0.0/24 [mask: 255.255.255.0] • 192.168.0.0/22 [maszk: 255.255.252.0] • 192.198.0.0/26 [maszk: 255.255.255.192]
Címzési módok • Unicast: Egy az egynek kapcsolatMinden cím egyedi és központilag kiosztott, emiatt egyértelműen azonosítja a címzettet. • Multicast: Egy a többnek kapcsolatLehetővé teszi az adó számára, hogy az üzenete több címzetthez is eljusson. • Broadcast: Egy mindenkinek kapcsolatA multicast speciális esete, ekkor mindenkinek szól az üzenet, így a network összes eleme beolvassa a csomagot.