CN 121 Lecture 04
CN 121 Lecture 04
Lecture #
Outline
• Why Addressing (done)
• Physical Addressing (On Progress)
• Logical Addressing
• Port Addressing
• Application Specific Addressing
CLASSFUL
ADDRESSING
Occupation of the address space
In classful addressing the address space is
divided into 5 classes:
A, B, C, D, and E.
Finding the class in binary notation
Finding the address class
Example 5
Solution
Solution
• 158.223.1.108
1st byte = 158 (128<158<191) class B
• 227.13.14.88
1st byte = 227 (224<227<239) class D
Figure 4-6
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
The 1st byte is between 128 and 191.
Hence, Class B
The block has a netid of 132.21.
The addresses range from
132.21.0.0 to 132.21.255.255.
Mask
• Then:
• Subnets can be freely assigned within the organization
• Internally, subnets are treated as separate networks
• Subnet structure is not visible outside the organization
A network with two levels of
hierarchy (not subnetted)
A network with three levels of
hierarchy (subnetted)
Note
• Subnetting is done by borrowing bits from the
host part and add them the network part
Addresses in a network with
and without subnetting
Default mask and subnet mask
Finding the Subnet Address
Solution
The number of 1s in the default
mask is 24 (class C).
Solution (Continued)
Solution
• IP Version 6
– Is the successor to the currently used IPv4
– Specification completed in 1994
– Makes improvements to IPv4 (no revolutionary changes)