Network Layer-Logical Addressing
Network Layer-Logical Addressing
LOGICAL ADDRESSING
9.1 Introduction
9.2 IPv4 Addresses
9.3 IPv6 Addresses
Required
• 32 bits in length.
• Gives a maximum of 232 addresses.
9.2.2 Notations
Binary Notation
Dotted-Decimal Notation
Example 1:
Example 2:
a) 129.11.11.239
b) 193.131.27.255
Example 3:
a) 111.56.045.78
b) 221.34.7.8.20
c) 75.45.301.14
d) 11100010.23.14.67
Example 4:
Class A
• Divided into 128 blocks; each block has different netid.
• 1st block 0.0.0.0 to 0.255.255.255 (netid - 0)
2nd block 1.0.0.0 to 1.255.255.255 (netid - 1)
last block 127.0.0.0 to 127.255.255.255 (netid-127)
• For each block of addresses the first byte (netid) is the same, but
the other 3 bytes (hostid) can take any value in the given range.
• 1st address in the block is used to identify the organization to the
rest of the internet. (Network address – defines the network of
the organization, not individual hosts)
• Last address is reserved for a special purpose.
Class B
• Divided into 16,384 blocks; each block has different netid.
• 16 blocks are reserved for private addresses, leaving 16,368
blocks for assignment to organizations.
• 1st block 128.0.0.0 to 128.0.255.255 (netid – 128.0)
last block 191.255.0.0 to 191.255.255.255 (netid 191.255)
• First 2 bytes (netid) are same for each block, other 2 bytes
(hostid) can take any value in the given range.
Class C
• Divided into 2,097,152 blocks; each block has different netid.
• 256 blocks are reserved for private addresses, leaving 2,096,896
blocks for assignment to organizations.
• 1st block 192.0.0.0 to 192.0.0.255 (netid – 192.0.0)
Last block 223.255.255.0 to 223.255.255.255 (netid –
223.255.255)
• First 3 bytes (netid) for each block is the same, but the remaining
byte (hostid) can take any value in the given range.
Class D
• There is just one block of class D addresses.
• It is designed for multicasting.
Class E
• There is just one block of class E addresses.
• It was designed for use as reserved addresses.
Example 5:
9.2.7 Subnetting
9.2.8 Masking
Example 6:
IP address 45 23 21 8
Mask 255 255 0 0
Subnetwork 45 23 0 0
address
Example 7:
Example 8:
IP address 45 123 21 8
Subnetwork 45 64 0 0
address
Example 9:
Note: y bits
Number of subnetworks = 2z
Number of hosts in a subnetwork = 2(y-z) - 2
8/2/2017 COSC 31014 30
9.2 IPv4 Addresses Contd..
Abbreviated Addresses