IP Address

IP stands for Internet Protocol. An IP address is a unique address used by different computers on a computer network to identify and communicate with one another. So, an IP address is used as an identifier to find electronic devices connected to one another on a network. Therefore, each device in the network must have its own unique address. An IP address is like a mailing address that is used to deliver data, that is, files, to a computer.

Some IP addresses are meant to be unique within the scope of the global Internet, whereas others are meant to be unique within the scope of a specific network. Internet Assigned Numbers Authority (IANA) creates and manages IP addresses for the public Internet. IANA allocates the superblocks of addresses to Regional Internet Registries, which in turn allocate smaller blocks of addresses to Internet service providers.

An IP address is 32 (thirty two) bits in length, which can be divided into a network portion and a host portion with the help of a subnet mask. It is represented in form of four octets, where 1 octet = 8 bits. Each octet is converted to a decimal format and is separated by a dot (‘.’). For this reason, an IP address is said to be expressed in a ‘dotted decimal format’.

Examples of IP addresses in decimal format: 10.1.1.1, 255.255.255.255, 220.3.1.5

The value in each octet ranges from 0 to 255 in decimal format. The ‘dotted decimal format’ is used to make it easier for the humans to read and remember the numbers, but computers use IP addresses in a binary format only.

Example of an IP address in binary format: 10011101.11100010.10101110.11101000

Binary Octet to Decimal Format Conversion

There exist a well-defined method for converting binary IP addresses into its equivalent decimal format, and vice-versa. Humans prefer to operate on the dotted decimal format, whereas behind the curtain, computers deal with IP addresses in the binary form.

The right most bit, or the least significant bit, of an octet will hold a value of 20. The bit just to the left of it will have a value of 21. This series continues till the left-most 8 th bit which gets a value of 27 Hence, if all the binary bits of an octet are ‘1’, then the decimal equivalent would be 255.

1

1

1

1

1

1

1

1

2 7

2 6

2 5

2 4

2 3

2 2

2 1

2 0

128

64

32

16

8

4

2

1

11111111 (binary octet) = 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = 255 (decimal format)

Given below is an example where all octet bits are not ‘1’.

0

1

0

0

0

0

0

1

2 7

2 6

2 5

2 4

2 3

2 2

2 1

2 0

128

64

32

16

8

4

2

1

01000001 (binary octet) = 1+0+0+0+0+0+64+0 = 65 (decimal format)

 

Static and Dynamic IP Addresses

An IP address could be static or dynamic. If the computer uses the same IP address whenever it connects to the network, then it is said to have a static IP address; if the IP address changes frequently whenever the computer connects to the network, then it is said to have a dynamic IP address. Static IP addresses are manually assigned by the network administrator, whereas the Dynamic Host Configuration Protocol (DHCP) is used to assign dynamic IP addresses. An operating system can also assign itself a dynamic address when a DHCP server and the network administrator are not available. The operating system uses Zero-conf for this purpose. Dynamic addresses are usually used for LANs and broadband networks, whereas static addresses are used to locate servers within an enterprise.

At present, two versions of Internet Protocol are in use: IPv4 and IPv6. IPv4 uses 32-bit addresses, so its address space is limited to 4,294,967,296 unique addresses, with a large part reserved for special purposes. So, fewer addresses are available to be used for the public Internet. IPv6 was designed as a replacement for IPv4, as the addresses are 128 bits wide; so IPv6 offers a large address space.

Types of IP Addresses

  • Unicast IP Address : It is used to transmit information to a specific network device on the network.
  • Broadcast IP Address : It allows information to be sent to all the computers on a given subnet rather than a particular machine. The exact notation can differ by the operating system, but the standard is laid out in RFC 919. The IP packets directed to the broadcast address are received by each and every machine on the subnet. It is generally used for mass communication such as a radio transmission over to multiple listeners.
    The broadcast address is calculated by taking the bit complement of the subnet mask and then applying OR operation bitwise with the IP address.

    Example: To broadcast a packet to an entire class B subnet using a private IP address space, the broadcast address would be 172.16.255.255. This can be done with the help of the subnet mask; 255.255.0.0, and the IP address; for e.g. 172.16.48.196. The complement of the subnet mask is 0.0.255.255, and 172.16.48.196 || 0.0.255.255 = 172.16.255.255.

    255.255.255.255 is a limited broadcast IP address, which does not reach every node on the Internet, only nodes on LAN.
  • Multicast IP Address : Multicast IP addresses are reserved and used only for specific groups of machines residing in a large domain. For example, an IP packet destined for a multicast address will be sent only to machine which are part of that Multicast Group. The address range of class D IP addresses from 224.0.0.0 to 239.255.255.255, or equivalent 224.0.0.0/4, is particularly reserved for Multicasting.
    Examples are RIP which uses 224.0.0.9 and OSPF which uses 224.0.0.5 address.
  • Private IP Address : These are local addresses which cannot be routed over the Internet. Two organizations can use the same private IP address. These addresses are free for use by anyone.
  • Public IP Address : It is a unique IP address assigned by IANA (Internet Assigned Network Authority). Duplication of the public IP addresses is impossible; hence these addresses need to be bought.

Discuss IP Address in the forums.

 
(0 - user rating)

You need to login or register to post comments.