Example
9
Find the
class of the address: 227.12.14.87
Solution
The first
byte is 227 (between 224 and 239); the class is D.
Example
10
Find the
class of the address: 193.14.56.22
Solution
The first
byte is 193 (between 192 and 223); the class is C.
Example
11
In Example 6
we showed that class A has 231 (2,147,483,648) addresses. How can we
prove this same fact using dotted-decimal notation?
Solution
The
addresses in class A range from 0.0.0.0 to 127.255.255.255. We notice that we
are
dealing with
base 256 numbers here.
Each byte in
the notation has a weight.
The weights
are as follows:
2563 ,
2562, 2561, 2560
Last
address: 127 ´ 2563 + 255 ´ 2562 +
255 ´ 2561 + 255 ´ 2560 = 2,147,483,647
255 ´ 2561 + 255 ´ 2560 = 2,147,483,647
First
address: = 0
If we
subtract the first from the last and add 1, we get 2,147,483,648.
No comments:
Post a Comment