




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Module 3—IP Addressing
AN233—Implementing WAN Solutions Student Manual
AN233—Implementing WAN Solutions Student Manual
Module 3—IP Addressing
Lesson Overview
Lesson 3-1 provides an overview of classful addressing.
Lesson Objective
After completing this lesson, you will be able to:
Describe the characteristics, addresses, and benefits of the IP addressing scheme
Introduction
Classful addressing was the first IP addressing scheme used for the Internet. In a classful addressing, an 8-, 16-, or 24-bit prefix determines whether the IP header uses 8, 16, or 24 bits to represent the host portion of the IP address. The remaining bits can represent individual devices on the network.
Module 3—IP Addressing
Class A IP Addresses This class of IP address uses seven bits for the network prefix and 24 bits for the host portion of the address. The first bit is always zero in a Class A address. Seven bits for the network prefix allows for only 2^7 (128) different Class A networks. On the other hand, each of these networks can be huge, with 2^24 (more than 16 million) computers on each. Class A addresses are in the range 0 .0.0.0– 126 .255.255.255. (The address 127.0.0.0 is reserved for the loopback interface.) Class B IP Addresses This class of IP address uses 14 bits for the network prefix and 16 bits for the host portion. This allows for just over 16 000 Class B networks with more than 65 000 IP network stations on each. Class B addresses are in the range 128.0 .0.0– 191.255 .0.0. Class C IP Addresses This last class of IP address uses 21 bits for the network prefix and just eight bits for the host portion. There are more than two million Class C networks, but each of these networks can have only 254 network stations.^1 Class C addresses are in the range 192.0.0 .0– 223.255.255 .0.
In addition to these three address classes, Class D and E addresses are sometimes mentioned.
Class D IP Addresses This class of IP address is used for IP multicasting. Class D addresses have the binary digits “1110” as the first four bits and are in the range 224.0.0.0–239.255.255.255. Class E IP Addresses This class of IP address is reserved for future use. Class E addresses have the binary digits “11110” as the first five bits of the address field.
(^1 2 8) = 256. In real IP networks, however, the first (all zeros in the host portion) and the
last (all ones) are reserved for special purposes, leaving just 254 usable IP addresses.
AN233—Implementing WAN Solutions Student Manual
Theoretically, an IP address size of 32 bits should allow more than 4 billion computers to have unique IP addresses, which should be sufficient for even the Internet in the foreseeable future. However, because IP addresses have been assigned to organizations in chunks of complete Class A, B, or C addresses, large portions of the address space are wasted. For instance, half the available address space (more than two billion addresses) is assigned to just 128 Class A networks.
Another problem with this allocation scheme is the small number of reasonably sized IP networks available. For most organizations, Class A or Class B addresses would be the most attractive, but the total number of these addresses is very small compared to the number of organizations worldwide wanting unique IP addresses. Consequently, most organizations are assigned Class C addresses. But since one Class C address can accommodate at most 254 hosts, many organizations have to build networks from several Class C networks.
Using several Class C networks has the following consequences: Routers are usually necessary. Routers are needed inside larger organizations because different IP networks must always be connected using a router. Network administrators must manage large address tables. Routing tables in Internet backbone routers grow extremely large, and they take a great deal of time to maintain. Someone must track every IP network address.
For these reasons, the classful address assignment scheme (that is, an assignment scheme that only checks the first three bits of an IP address when making routing decisions and ignores the subnet mask) described above is gradually being replaced with the classless “network prefix/host portion” interpretation of IP addresses. A classless address assignment is a more hierarchical structure, where each domain’s IP address is related to the level above it. The classful assignment scheme uses fewer IP addresses and conserves backbone router resources. However, large portions of the IP address space have already been assigned as Class A and B addresses to organizations that are not yet using them.