Ip Address Introduction
Ip Address Introduction
2
ctd
Network Addressing is one of the major
responsibilities of the network layer.
Network addresses are always logical.Thus,
software-based addresses.
A host is also known as end system that has one link
to the network. The boundary between the host and
link is known as an interface. Therefore, the host can
have only one interface.
A router is different from the host in that it has two
or more links that connect to it.
3
ctd
When a router forwards the datagram it forwards
the packet to one of the links. The boundary
between the router and the link is known as an
interface. A router can have multiple interfaces one
for each of its links. Each interface is capable of
sending and receiving the IP packets. Hence, IP
requires each interface to have an address.
Each IP address comprises of 32 bits long, and they
are represented in the form of "dot-decimal
notation" where each byte is written in the decimal
form, and they are separated by the period.
4
ctd
An IP address would look like 193.32.216.9 where
193 represents the decimal notation of first 8 bits of
an address, 32 represents the decimal notation of
second 8 bits of an address etc.
Hence, an IP address is represented by a series of
numbers segregated by periods(.). They are expressed
in the form of four pairs - an example address might
be 255.255.255.255 wherein each set can range from
0 to 255.
5
ctd
Addresses are not produced randomly. They are
generated mathematically and further assigned by
the Internet Assigned Numbers Authority(IANA), a
department of the Internet Corporation for
Assigned Names and Numbers(ICANN).
This is a non-profit corporation founded in the US
back in 1998 with an aim to manage Internet
security and enable it to be available by all.
6
Types of IP Address
An IP address is categorized into two different
types based on the number of IP address it
contains. These are:
IPv4 (Internet Protocol version 4)
IPv6 (Internet Protocol version 6)
IPv4:It is a current version and the most
commonly used IP address.
It is a 32-bit address written in four numbers
separated by a dot (.), i.e., periods. This address is
unique for each device. For example, 66.94.29.13
7 What is IPv6?
ctd
IPv6:IPv6 is the next generation of IP addresses. The main
difference between IPv4 and IPv6 is the address size of IP
addresses.
The IPv4 is a 32-bit address, whereas IPv6 is a 128-bit
hexadecimal address. IPv6 provides a large address space, and
it contains a simple header as compared to IPv4.
8
Example.
9
ctd
In the above figure, a router has three interfaces
labeled as 1, 2 & 3 and each router interface
contains its own IP address.
Each host contains its own interface and IP address.
All the interfaces attached to the LAN 1 is having
an IP address in the form of 223.1.1.xxx, and the
interfaces attached to the LAN 2 and LAN 3 have
an IP address in the form of 223.1.2.xxx and
223.1.3.xxx respectively.
10
ctd
Each IP address consists of two parts. The first part
(first three bytes in IP address) specifies the network
and second part (last byte of an IP address) specifies
the host in the network(i.e Class C).
An IP address is a unique address that identifies a
device on the internet or a local network. IP stands
for "Internet Protocol," which is the set of rules
governing the format of data sent via the internet or
local network.
An IP address is a string of numbers separated by
periods.
11
ctd
12
ctd
Each time anyone registers a domain on the internet,
they go through a domain name registrar, who pays a
small fee to ICANN to register the domain.
Classful Addressing:An IP address is 32-bit long. An
IP address is divided into sub-classes:
Class A
Class B
Class C
Class D
Class E
13
ctd
An ip address is divided into two parts:
Network ID: It represents the number of networks.
Host ID: It represents the number of hosts.
14
ctd
Class A
In Class A, an IP address is assigned to those
networks that contain a large number of hosts.
The network ID is 8 bits long.
The host ID is 24 bits long.
In Class A, the first bit in higher order bits of the first
octet is always set to 0 and the remaining 7 bits
determine the network ID. The 24 bits determine the
host ID in any network.
15
END
The total number of networks in Class A = 27 =
128 network address
The total number of hosts in Class A = 224 - 2 =
16,777,214 host address.
16