| Lesson 7 || IP address Conventions |
| Objective ||What is the Structure of an IP Address? |
Structure of an IP Address
Before discussing TCP/IP configuration in detail, we should briefly recall the fundamental notions of IP addressing and netmasks 
Every machine on a TCP/IP network must have a unique 32-bit identifying number called its IP, or Internet Protocol address.
IP addresses are usually written in the familiar dotted decimal form:
www are integers between 0 and 255,
each corresponding to one byte of the 32-bit address.
An IP address has two parts, 1) a network address and 2) a host address. This division simplifies routing.
A routing machine can make decisions about where to send information based on the network portion of the address, without looking at the full IP address. This ability leaves fewer possibilities to consider, so the decision may be made faster.
How the address is divided
How the IP address is divided between host and network portions depends partly on local policy and partly on Internet rules.
The rule part is reflected in the classification of IP addresses into Class A, Class B, and Class C addresses based on their first byte. As
the table below shows, Class A addresses use the first byte for the network address, and the remaining bytes for the host address; and Class C
addresses use the first three bytes as network address, with the last byte as host address.
||First Byte Range
||Number of Bytes for Network
||Number of Bytes for Host
Several standard conventions govern the use of IP addresses:
- An IP address with all host bits set to zero refers to an entire network.
For example, the address 22.214.171.124 is a Class C address (because the first byte is 192, which falls in the Class C range). Then the network address is 126.96.36.199, which is obtained by setting all host bits to zero.
- An IP address with all host bits set to one is the broadcast address for that network.
The broadcast address is used to speak simultaneously to all hosts on that network.
For example, the address 188.8.131.52 (which has all eight host bits set to one) is the broadcast address for the 184.108.40.206 network.
- The address 127.0.0.1 is reserved by TCP/IP. It is called the loopback address, and always refers to the local machine.
Thus, any connection to 127.0.0.1 loops back to its origin.
- The address 0.0.0.0 refers to the first configured interface on a machine.
IP Address Quiz
Click the Quiz link below to take a short multiple-choice quiz on IP addresses.
IP Address - Quiz
A 32-bit bit mask which shows how an Internet address is to be divided into network, subnet and host parts.