Monday, 4 January 2016

IP address

                                        WHAT IS IP ADDRESS

      IP address is short for Internet Protocol (IPaddress. 
  • IP specifies the format of packets , also called datagrams, and the addressing scheme.
  • An IP address is an identifier for a computer or device on a TCP/IP network. Networks using the TCP/IP protocol route messages based on the IP address of the destination.

THE FORMAT OF AN IP ADDRESS

The format of an IP address is a 32-bit numeric address written as four numbers separated by periods. Each number can be zero to 255. For example, 1.160.10.240 could be an IP address.
Within an isolated network, you can assign IP addresses at random as long as each one is unique. However, connecting a private network to the Internet requires using registered IP addresses (called Internet addresses) to avoid duplicates.

STATIC VERSUS DYNAMIC IP ADDRESSES

An IP address can be static or dynamic. A static IP address will never change and it is a permanent Internet address. A dynamic IP address is a temporary address that is assigned each time a computer or device accesses the Internet.
The four numbers in an IP address are used in different ways to identify a particular network and a host on that network. Four regional Internet registries — ARIN, RIPE NCC, LACNIC and APNIC — assign Internet addresses from the following three classes:
Class A – supports 16 million hosts on each of 126 networks
Class B – supports 65,000 hosts on each of 16,000 networks
Class C – supports 254 hosts on each of 2 million networks
The number of unassigned Internet addresses is running out, so a new classless scheme called CIDR is gradually replacing the system based on classes A, B, and C and is tied to adoption of IPv6. In IPv6 the IP address size is increased from 32 bits to 128 bits.

WHAT IS MY IP ADDRESS?

To view your IP address you can use the ipconfig (IPCONFIG) command line tool.  Ipconfig displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.
To launch the command prompt from a Windows-based computer click: Start > All Programs >Accessories >Command Prompt. Type ipconfig and press the Enter key.
You can also use Google search to find your IP address. Type “what is my IP address” as a search query and Google will show the IP address of the computer from which the query was received as the top search result.
Internet Protocol hierarchy contains several classes of IP Addresses to be used efficiently in various situations as per the requirement of hosts per network. Broadly, the IPv4 Addressing system is divided into five classes of IP Addresses. All the five classes are identified by the first octet of IP Address.
Internet Corporation for Assigned Names and Numbers is responsible for assigning IP addresses.
The first octet referred here is the left most of all. The octets numbered as follows depicting dotted decimal notation of IP Address:
IP decimal notation
The number of networks and the number of hosts per class can be derived by this formula:
Number of networks
When calculating hosts’ IP addresses, 2 IP addresses are decreased because they cannot be assigned to hosts, i.e. the first IP of a network is network number and the last IP is reserved for Broadcast IP.

CLASS A ADDRESS

The first bit of the first octet is always set to 0 (zero). Thus the first octet ranges from 1 – 127, i.e.
Class A Addresses
Class A addresses only include IP starting from 1.x.x.x to 126.x.x.x only. The IP range 127.x.x.x is reserved for loopback IP addresses.
The default subnet mask for Class A IP address is 255.0.0.0 which implies that Class A addressing can have 126 networks (27-2) and 16777214 hosts (224-2).
Class A IP address format is thus:0NNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH

CLASS B ADDRESS

An IP address which belongs to class B has the first two bits in the first octet set to 10, i.e.
Class B Addresses
Class B IP Addresses range from 128.0.x.x to 191.255.x.x. The default subnet mask for Class B is 255.255.x.x.
Class B has 16384 (214) Network addresses and 65534 (216-2) Host addresses.
Class B IP address format is:10NNNNNN.NNNNNNNN.HHHHHHHH.HHHHHHHH

CLASS C ADDRESS

The first octet of Class C IP address has its first 3 bits set to 110, that is:
Class C Addresses
Class C IP addresses range from 192.0.0.x to 223.255.255.x. The default subnet mask for Class C is 255.255.255.x.
Class C gives 2097152 (221) Network addresses and 254 (28-2) Host addresses.
Class C IP address format is:110NNNNN.NNNNNNNN.NNNNNNNN.HHHHHHHH

CLASS D ADDRESS

Very first four bits of the first octet in Class D IP addresses are set to 1110, giving a range of:
Class D Addresses
Class D has IP address rage from 224.0.0.0 to 239.255.255.255. Class D is reserved for Multicasting. In multicasting data is not destined for a particular host, that is why there is no need to extract host address from the IP address, and Class D does not have any subnet mask.

CLASS E ADDRESS

This IP Class is reserved for experimental purposes only for R&D or Study. IP addresses in this class ranges from 240.0.0.0 to 255.255.255.254. Like Class D, this class too is not equipped with any subnet mask.

No comments:

Post a Comment