Lecture # 18
Lecture # 18
LOGICAL ADDRESSING
LECTURE # 18
Computer Communications and Networking EE-
423
The
following IP addresses ranges belong to
GOOGLE.
64.233.160.0 – 64.233.191.255
66.102.0.0 – 66.102.15.255
66.249.64.0 – 66.249.95.255
72.14.192.0 – 72.14.255.255
74.125.0.0 – 74.125.255.255
209.85.128.0 – 209.85.255.255
216.239.32.0 – 216.239.63.255
11
Classful Addressing
Another way to find the first address, the last address, and the number
of addresses is to represent the mask as a 32-bit binary (or 8-digit
hexadecimal) number. This is particularly useful when we are writing
a program to find these pieces of information. In last Example /28 can
be represented as 11111111 11111111 11111111 11110000 (twenty-
eight Is and four 0s). Find:
The first address
The last address
The number of addresses
28
Example
Suppose the mask for the first subnet is n1, then 2 32- n1
must
be 32, which means that n1 =27.
Suppose the mask for the second subnet is n2, then 2 32- n2
Group 1
For this group, each customer needs 256 addresses. This
means that 8 (log2 256) bits are needed to define each host.
The prefix length is then 32 - 8 =24. The addresses are
1st Customer: 190.100.0.0/24 190.100.0.255/24
2nd Customer: 190.100.1.0/24
190.100.1.255/24
64th Customer: 190.100.63.0/24
190.100.63.255/24
46
Example
Group 2
For this group, each customer needs 128 addresses. This
means that 7 (log2 128) bits are needed to define each host.
The prefix length is then 32 - 7 =25. The addresses are
1st Customer: 190.100.64.0/25
190.100.64.127/25
2nd Customer: 190.100.64.128/25
190.100.64.255/25
128th Customer: 190.100.127.128/25
47
Example
Group 3
For this group, each customer needs 64 addresses. This means
that 6 (log2 64) bits are needed to each host. The prefix length is
then 32 - 6 =26. The addresses are
1st Customer: 190.100.128.0/26
190.100.128.63/26
2nd Customer: 190.100.128.64/26
190.100.128.127/26
128 th Customer: 190.100.159.192/26 190.100.159.255/26
48
Example