Home | Computer | Networks
Classes of IP addresses:
IP addresses are divided into five classes: A, B, C, D, and E. These classes define the number of bits that can be used for the network ID and the host ID of each address. Class A, B, and C IP addresses are used for assignment to TCP/IP hosts.
IP address table:
Note: w, x, y, or z represents an octet of an IP address.
There are some rules about valid IP addresses, which are described as follows:
Subnet Masks:Network IDs and host IDs within an IP address are distinguished by using a subnet mask. It tells a TCP/IP host how to interpret IP addresses by defining what portion of IP address is network ID and what portion is host ID. A subnet mask uses consecutive bit groups of all 0s or 1s. All 1s identify the network ID and all 0s identify the host ID portions of an IP address. Hence, a 255 in a subnet mask indicates that the corresponding octet in an IP address is a part of a network number. On the other hand, a 0 in a subnet mask indicates that the corresponding octet in the IP address is a part of the host ID.
For example, the following is an example of a 32-bit subnet mask used with the IP address 131.107.16.200:11111111.11111111.00000000.00000000 By analyzing this subnet mask, one can know the IP address Class. As in the above example, we can see that there are sixteen 1s and sixteen 0s, which indicates that the IP address belongs to the Class B network.
Subnet masks are used by hosts to determine their network numbers and to know whether the destination host is on the same network or on a different network. Subnet masks are referenced in either dotted notation or Classless Inter Domain Routing (CIDR) notation. CIDR notation notes the number of binary 1s in the subnet mask. This number is placed at the end of the network ID.
An example of a CIDR notation for Class B IP addresses is shown as follows:
In the above example of subnet mask (in the CIDR Notation column), the value of 24 refers to 24 binary 1 bits in the subnet mask. Since, in the subnet mask, there are three 255s and each value of 255 represents 8 bits, there are 8*3=24 binary 1 bits in the mask.
Subnetting an IP network number:
Subnetting is a process of subdividing a single IP network into multiple smaller networks with unique subnetted network IDs in order to reduce the size of the broadcast domain and better utilize the bits in the host ID. It is accomplished by modifying the subnet mask values. Subnetted network IDs are created by using bits from the host ID of the original class-based network ID. Example 1:
A class B network of 139.12.0.0 can have up to 65,534 nodes. Due to a large number of nodes, the broadcast domain is very large. In this situation, subnetting is performed to make the broadcast domain smaller. Network 139.12.0.0 is subnetted by utilizing the first 8 host bits (the third octet) for the new subnetted network ID. When 139.12.0.0 is subnetted, separate networks with their own subnetted network IDs (139.12.1.0, 139.12.2.0, 139.12.3.0) are created. Example 2:
If a subnet mask of 255.255.255.0 is applied to a Class B IP address of 174.15.0.0, the first three bytes (as is clear from the subnet mask) are represent a network ID, and only the rightmost byte is interpreted as a host ID. Although the address belongs to Class B, subnetting the third byte now can be used to define several subnetworks or subnets. Therefore, the broadcast domain will become smaller and each subnet will support fewer host IDs.
Article Directory: http://www.articlecube.com
About the Author:
uCertify was formed in 1996 with an aim to offer high quality educational training software and services in the field of information technology to its customers. uCertify provides exam preparation solutions for the certification exams of Microsoft, CIW, CompTIA, Oracle, Sun and other leading IT vendors. To know more about uCertify, please visit http://www.ucertify.com/
Please Rate this Article
5 out of 54 out of 53 out of 52 out of 51 out of 5
Not yet Rated