Classful Addressing
Classful Addressing
Classful Addressing
INTRODUCTION
An IP address is a 32-bit address.
75 95 1D EA
0x75951DEA
Example 1
11101111-
1*2^7+1*2^6+1*2^5+0*2^4+1*2^3+
1*2^2+1*2^1+1*2^0
Example 2
Solution
01101111 00111000 00101101 01001110
Example 3
Solution
Solution
0X810B0BEF or 810B0BEF16
CLASSFUL
ADDRESSING
IP Addressess
• IP is a network layer - it must be capable of providing
communication between hosts on different kinds of networks
(different data-link implementations).
231(50%)
229(12.5%) 228(6.25%)
In classful addressing,
the address space is
divided into five classes:
A, B, C, D, and E.
Classful IP Address
Finding the address class
The four formats of IP Addresses
Class
A 0 NetID HostID
B 10 NetID HostID
• cs.rpi.edu is 128.213.1.1
10000000 11010101 00000001 00000001
CS has a class B network
Blocks in class A
Millions of class A addresses
are wasted.
Blocks in class B
Many class B addresses
are wasted.
Blocks in class C
The number of addresses in
a class C block
is smaller than
the needs of most organizations.
Class D addresses
are used for multicasting;
there is only
one block in this class.
Class E addresses are reserved
for special purposes;
most of the block is wasted.
Network Addresses
Solution
Solution
Solution
Solution
Solution
18.46.74.10/8 – Class A
141.24.74.69/16 - Class B
200.14.70.22/24 – Class C
•The router has more than one IP address, one for each interface.
Network addresses
Example of direct broadcast address
- Host IDs are all 1’s.
Example of limited broadcast address
Example of this host on this address
Example of specific host on this network
Loop back address
• IP address with first byte as 127[127.X.Y.Z]
• Used to test the s/w on a machine [ Here the
packet simply returns to the protocol s/w on
the same machine]
• Eg. Ping appln to test if the process is able to
receive and process a packet.
• Eg. Client process sending msg to server
process on the same machine.
Special Addresses
Special Address Netid Hostid Source or
Destination
Network address Specific All 0s None
Direct broadcast address Specific All 1s Destination
The mask is
11111111 11111111 11111111 11000000
or
255.255.255.192.
The number of subnets is 1024.
The number of addresses in each subnet is 26
(6 is the number of 0s) or 64.
Note: