|
IP was created as a way to hide the complexity of physical addressing by creating a virtual addressing scheme that is independent of the underlying network. IP does not ensure that data is delivered to the application in the appropriate order; that responsibility is left to upper-layer protocols such as TCP and UDP.
IP is a connectionless, Network-layer protocol.
An IP address is 32 bits long. The bits can be broken down into four bytes. Each byte is expressed in decimal form and separated from other bytes by a dot (that is, x.x.x.x). This is called dotted-decimal format. Each bit within a byte carries a binary weight (starting from left to right) of 128, 64, 32, 16, 8, 4, 2, 1. If you add up these values, you get a range of 0-255 for each byte.
For example, one byte can be translated from binary format to decimal format as follows:
128 |
|
64 |
|
32 |
|
16 |
|
8 |
|
4 |
|
2 |
|
1 |
|
|
0 |
|
1 |
|
1 |
|
1 |
|
0 |
|
0 |
|
0 |
|
1 |
|
|
0 |
+ |
64 |
+ |
32 |
+ |
16 |
+ |
0 |
+ |
0 |
+ |
0 |
+ |
1 |
= |
113 |
IP addressing has been broken down into five separate classes based on the number of maximum hosts required by the network.
IP Address Classes
|
|
|
8 |
16 |
24 |
32 |
Class A |
0 |
Network |
Host |
Class B |
10 |
Network |
Host |
Class C |
110 |
Network |
Host |
Class D |
1110 |
Multicast Address |
Class E |
1111 |
Reserved |
You can see from above figure that each address class contains a network portion and a host portion. The network portion identifies the data link that is in common with all the devices attached to that network. The host portion uniquely identifies an end device connected to the network.
| Class |
Decimal Value of First Byte |
Purpose |
Max, Hosts |
| Class A |
0–127 |
Large organizations |
16,777,214 |
| Class B |
128–191 |
Medium-sized Organizations |
65,543 |
| Class C |
192–223 |
Small organizations |
254 |
| Class D |
224–247 |
Multicast addresses |
n/a |
| Class E |
248–255 |
Experimental |
n/a |
Private IP Addresses
Private address space is not recognized by the Internet and can be used by anyone for use within a private network. Public address space, on the other hand, is a unique address that is assigned to a company. Within Classes A, B, and C the following ranges have been defined as private.
| Starting Address |
Ending Address |
| 10.0.0.0 |
10.255.255.255 |
| 172.16.0.0 |
172.31.255.255 |
| 192.168.0.0 |
192.168.255.255 |
Address Masks
The network mask is used in conjunction with an IP address to delineate the network portion of an IP address from the host portion. Each major network address within its designated class has a standard network mask.
|