Ipv4 Ipv6: Types of Logical Addresses
Ipv4 Ipv6: Types of Logical Addresses
Ipv4 Ipv6: Types of Logical Addresses
1
• IPv4
2
• IPv6
1
IPv4 ADDRESSES
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a
2
The address space of IPv4 is
32
2 or 4,294,967,296.
3
Dotted-decimal notation and binary notation for an IPv4 address
4
Example
Change the following IPv4 addresses from binary notation to dotted-decimal notation.
Solution
We replace each group of 8 bits with its equivalent decimal number (see Appendix B) and add dots
for separation.
5
Example
Change the following IPv4 addresses from dotted-decimal notation to binary notation.
Solution
We replace each decimal number with its binary equivalent (see Appendix B).
6
Find the error, if any, in the following IPv4 addresses.
Solution
1
• Classful Address
2
• Classless Address
8
Classful Addressing
A, B, C, D, and E.
9
Finding the classes in binary and dotted-decimal notation
10
Example
c. 14.23.120.8
d. 252.5.15.111
Solution
address.
wasted.
12
Classful addressing, which is almost obsolete, is replaced with
classless addressing.
13
Working with IPv4
14
Host & Network Part of an IP Address
For Class A: (N H H H)
First 8 bits are considered as Networks Part
For Class B: (N N H H)
First 16 bits are considered as Networks Part
For Class C: (N N N H)
First 24 bits are considered as Networks Part
15
Host & Network Part of an IP Address
Examples:
Class A: 10.0.1.2
N.H.H.H
Class B: 172.10.1.2
N.N.H.H
Class C: 192.168.3.4
N.N.N.H
16
Network Credentials
Network Address
Broadcast Address
Host Address (First Host & Last Host)
Subnet Mask Address
17
Network Address
A network address is an identifier for a node or
host on a network
Finding Out a Network Address:
Network part as it is
18
Network Address Exercise
What is the Network of 11.30.2.2?
Ans: 11.0.0.0
20
Broadcast Address Exercise
What is the Broadcast address of 11.30.2.2?
Ans: 11.255.255.255
21
Host Address (First Host & Last Host)
A host address is the IP address of a machine in
a particular network.
Finding Out Host Address:
First Host (FH) = Network Address (NA) + 1
22
Host Address Exercise
Find out the First & Last host of 11.30.2.2?
Ans: FH = 11.0.0.1
LH = 11.255.255.254
Find out the First & Last host of 170.2.3.1?
Ans: FH = 170.2.0.1
LH = 170.2.255.254
Find out the First & Last host of 192.20.3.1?
Ans: FH = 192.20.3.1
LH = 192.20.3.254
23
Subnet Mask Address
Subnet mask is used to determine what subnet an
IP address belongs to.
Finding Out a Subnet Mask Address:
Network part All ‘1’ (one)
24
Subnet Mask Address Exercise
What is the Subnet Mask of 11.30.2.2?
Ans: 255.0.0.0
25
Default Subnet masks for classful
addressing
26
IPv6 ADDRESSES
Despite all short-term solutions, address depletion is still a long-term problem for the Internet.
This and other problems in the IP protocol itself have been the motivation for IPv6.
27
IPv6: motivation
32
An IPv6 address is 128 bits long.
29
IPv6 address in binary and hexadecimal colon notation
30
Abbreviated IPv6 addresses
31
Example
Solution
We first need to align the left side of the double colon to the left of the original pattern and the right
side of the double colon to the right of the original pattern to find how many 0s we need to replace
32
Thank You
33