SlideShare a Scribd company logo
Network Layer:
Logical Addressing
IPv4 ADDRESSES
IPv4 ADDRESSES
• An IPv4 address is a 32-bit address that uniquely and
universally defines the connection of a device (for
example, a computer or a router) to the Internet.
The IPv4 addresses are unique
and universal.
The address space of IPv4 is
232
or 4,294,967,296.
Dotted-decimal notation and binary notation for an IPv4 address
Change the following IPv4 addresses from binary
notation to dotted-decimal notation.
Example
Solution
We replace each group of 8 bits with its equivalent
decimal number and add dots for separation.
Change the following IPv4 addresses from dotted-decimal
notation to binary notation.
Example
Solution
We replace each decimal number with its binary
equivalent.
Find the error, if any, in the following IPv4 addresses.
Example
19.7
Solution
a. There must be no leading zero (045).
b. There can be no more than four numbers.
c. Each number needs to be less than or equal to 255.
d. A mixture of binary notation and dotted-decimal
notation is not allowed.
Finding the classes in binary and dotted-decimal notation
Netid and Hostid
In classful addressing, the address
space is divided into five classes:
A, B, C, D, and E.
Find the class of each address.
a. 00000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 14.23.120.8
d. 252.5.15.111
19.10
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a class C
address.
c. The first byte is 14; the class is A.
d. The first byte is 252; the class is E.
Number of blocks and block size in classful IPv4 addressing
In classful addressing, a large part of
the available addresses were wasted.
Default masks for classful addressing
Classful addressing, which is almost
obsolete, is replaced with classless
addressing.
In IPv4 addressing, a block of
addresses can be defined as
x.y.z.t /n
in which x.y.z.t defines one of the
addresses and the /n defines the mask.
The first address in the block can be
found by setting the rightmost
32 − n bits to 0s.
A block of addresses is granted to a small organization.
We know that one of the addresses is 205.16.37.39/28.
What is the first address in the block?
Solution
The binary representation of the given address is
11001101 00010000 00100101 00100111
If we set 32−28 rightmost bits to 0, we get
11001101 00010000 00100101 0010000
or
205.16.37.32.
This is actually the block.
Example
The last address in the block can be
found by setting the rightmost
32 − n bits to 1s.
Find the last address for the block in the previous
Example.
Solution
The binary representation of the given address is
11001101 00010000 00100101 00100111
If we set 32 − 28 rightmost bits to 1, we get
11001101 00010000 00100101 00101111
or
205.16.37.47
This is actually the block.
The number of addresses in the block
can be found by using the formula
232−n
.
The first address in a block is
normally not assigned to any device;
it is used as the network address that
represents the organization
to the rest of the world.
Configuration and addresses in a subnetted network
An (internet service provider)ISP is granted a block of addresses
starting with 190.100.0.0/16 (65,536 addresses). The ISP
needs to distribute these addresses to three groups of
customers as follows:
a. The first group has 64 customers; each needs 256
addresses.
b. The second group has 128 customers; each needs 128
addresses.
c. The third group has 128 customers; each needs 64
addresses.
Design the subblocks and find out how many addresses
are still available after these allocations.
Example 19.10
Group 1
For this group, each customer needs 256 addresses. This
means that 8 (log2 256) bits are needed to define each
host. The prefix length is then 32 − 8 = 24. The addresses
are
Group 2
For this group, each customer needs 128 addresses. This
means that 7 (log2 128) bits are needed to define each
host. The prefix length is then 32 − 7 = 25. The addresses
are
Group 3
For this group, each customer needs 64 addresses. This
means that 6 (log264) bits are needed to each host. The
prefix length is then 32 − 6 = 26. The addresses are
Number of granted addresses to the ISP: 65,536
Number of allocated addresses by the ISP: 40,960
Number of available addresses: 24,576
An example of address allocation and distribution by an ISP
Addresses for private networks
NAT(Network Address Translation) enables a user to
have a large set of addresses internally and one address, or a small set of addresses,
externally. The traffic inside can use the large set; the traffic outside, the small set.
many are not happy with one address; many have created small networks with several hosts and need an IP address for each host. With the shortage of addresses, this is
a serious problem.
An ISP and NAT(Network Address Translation)
IPv6 ADDRESSES
IPv6 ADDRESSES
Despite all short-term solutions, address depletion is
Despite all short-term solutions, address depletion is
still a long-term problem for the Internet. This and
still a long-term problem for the Internet. This and
other problems in the IP protocol itself have been the
other problems in the IP protocol itself have been the
motivation for IPv6.
motivation for IPv6.
An IPv6 address is 128 bits long.
IPv6 address in binary and hexadecimal colon notation

More Related Content

PPT
Subnet Masking in Computer Network--CST 2nd year by Tanushree Bhadra
PPT
ch19new.ppt
PPTX
ch 5.3 & 4 logical addrgggggggessing.pptx
PDF
IP addressing in computer Networks explanation
PPT
4a logical laddressing
PPT
PPT
network Addressing
PPT
design and data anaylysis software development
Subnet Masking in Computer Network--CST 2nd year by Tanushree Bhadra
ch19new.ppt
ch 5.3 & 4 logical addrgggggggessing.pptx
IP addressing in computer Networks explanation
4a logical laddressing
network Addressing
design and data anaylysis software development

Similar to 11 IP Addressing computer networks and modes (20)

PPT
ip addressing _
PPT
19 Network Layer_Logical_Addressing
PPT
Chapter 19: Logical Addressing
PPT
ch19 (1).ppt
PPT
Network Layer Logical Addressing related topics
PPT
Theory of Eng ADDRESSING IN IPV IPV6.ppt
PPT
Fiber Optical Networks and Data Communication
PPTX
ip addressing _
PDF
network-layer-forohhfbjhgvdefhnnmuzan.pdf
PPT
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
PPT
Chapter 19
PPT
Data communications and networking ch19 forouzan.ppt
PDF
Ch19 network layer-logical add
PPT
IP Addressing.ppt Network layer IP addressing
PPT
IPv4 Address uploading.ppt
PDF
20CS2007 Computer Communication Networks
PPTX
Network_layer_addressing.pptx
PPTX
Lecture W4 CN IP Addressing P1.pptx
PPT
Ch19
ip addressing _
19 Network Layer_Logical_Addressing
Chapter 19: Logical Addressing
ch19 (1).ppt
Network Layer Logical Addressing related topics
Theory of Eng ADDRESSING IN IPV IPV6.ppt
Fiber Optical Networks and Data Communication
ip addressing _
network-layer-forohhfbjhgvdefhnnmuzan.pdf
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Chapter 19
Data communications and networking ch19 forouzan.ppt
Ch19 network layer-logical add
IP Addressing.ppt Network layer IP addressing
IPv4 Address uploading.ppt
20CS2007 Computer Communication Networks
Network_layer_addressing.pptx
Lecture W4 CN IP Addressing P1.pptx
Ch19
Ad

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
composite construction of structures.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
PPT on Performance Review to get promotions
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPT
Project quality management in manufacturing
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
DOCX
573137875-Attendance-Management-System-original
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Sustainable Sites - Green Building Construction
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
composite construction of structures.pdf
additive manufacturing of ss316l using mig welding
PPT on Performance Review to get promotions
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Project quality management in manufacturing
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CH1 Production IntroductoryConcepts.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
R24 SURVEYING LAB MANUAL for civil enggi
573137875-Attendance-Management-System-original
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
OOP with Java - Java Introduction (Basics)
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Sustainable Sites - Green Building Construction
Ad

11 IP Addressing computer networks and modes

  • 2. IPv4 ADDRESSES IPv4 ADDRESSES • An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet. The IPv4 addresses are unique and universal. The address space of IPv4 is 232 or 4,294,967,296.
  • 3. Dotted-decimal notation and binary notation for an IPv4 address
  • 4. Change the following IPv4 addresses from binary notation to dotted-decimal notation. Example Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation.
  • 5. Change the following IPv4 addresses from dotted-decimal notation to binary notation. Example Solution We replace each decimal number with its binary equivalent.
  • 6. Find the error, if any, in the following IPv4 addresses. Example
  • 7. 19.7 Solution a. There must be no leading zero (045). b. There can be no more than four numbers. c. Each number needs to be less than or equal to 255. d. A mixture of binary notation and dotted-decimal notation is not allowed.
  • 8. Finding the classes in binary and dotted-decimal notation Netid and Hostid In classful addressing, the address space is divided into five classes: A, B, C, D, and E.
  • 9. Find the class of each address. a. 00000001 00001011 00001011 11101111 b. 11000001 10000011 00011011 11111111 c. 14.23.120.8 d. 252.5.15.111
  • 10. 19.10 Solution a. The first bit is 0. This is a class A address. b. The first 2 bits are 1; the third bit is 0. This is a class C address. c. The first byte is 14; the class is A. d. The first byte is 252; the class is E.
  • 11. Number of blocks and block size in classful IPv4 addressing In classful addressing, a large part of the available addresses were wasted.
  • 12. Default masks for classful addressing
  • 13. Classful addressing, which is almost obsolete, is replaced with classless addressing. In IPv4 addressing, a block of addresses can be defined as x.y.z.t /n in which x.y.z.t defines one of the addresses and the /n defines the mask. The first address in the block can be found by setting the rightmost 32 − n bits to 0s.
  • 14. A block of addresses is granted to a small organization. We know that one of the addresses is 205.16.37.39/28. What is the first address in the block? Solution The binary representation of the given address is 11001101 00010000 00100101 00100111 If we set 32−28 rightmost bits to 0, we get 11001101 00010000 00100101 0010000 or 205.16.37.32. This is actually the block. Example
  • 15. The last address in the block can be found by setting the rightmost 32 − n bits to 1s.
  • 16. Find the last address for the block in the previous Example. Solution The binary representation of the given address is 11001101 00010000 00100101 00100111 If we set 32 − 28 rightmost bits to 1, we get 11001101 00010000 00100101 00101111 or 205.16.37.47 This is actually the block.
  • 17. The number of addresses in the block can be found by using the formula 232−n . The first address in a block is normally not assigned to any device; it is used as the network address that represents the organization to the rest of the world.
  • 18. Configuration and addresses in a subnetted network
  • 19. An (internet service provider)ISP is granted a block of addresses starting with 190.100.0.0/16 (65,536 addresses). The ISP needs to distribute these addresses to three groups of customers as follows: a. The first group has 64 customers; each needs 256 addresses. b. The second group has 128 customers; each needs 128 addresses. c. The third group has 128 customers; each needs 64 addresses. Design the subblocks and find out how many addresses are still available after these allocations. Example 19.10
  • 20. Group 1 For this group, each customer needs 256 addresses. This means that 8 (log2 256) bits are needed to define each host. The prefix length is then 32 − 8 = 24. The addresses are
  • 21. Group 2 For this group, each customer needs 128 addresses. This means that 7 (log2 128) bits are needed to define each host. The prefix length is then 32 − 7 = 25. The addresses are
  • 22. Group 3 For this group, each customer needs 64 addresses. This means that 6 (log264) bits are needed to each host. The prefix length is then 32 − 6 = 26. The addresses are Number of granted addresses to the ISP: 65,536 Number of allocated addresses by the ISP: 40,960 Number of available addresses: 24,576
  • 23. An example of address allocation and distribution by an ISP
  • 24. Addresses for private networks NAT(Network Address Translation) enables a user to have a large set of addresses internally and one address, or a small set of addresses, externally. The traffic inside can use the large set; the traffic outside, the small set. many are not happy with one address; many have created small networks with several hosts and need an IP address for each host. With the shortage of addresses, this is a serious problem.
  • 25. An ISP and NAT(Network Address Translation)
  • 26. IPv6 ADDRESSES IPv6 ADDRESSES Despite all short-term solutions, address depletion is Despite all short-term solutions, address depletion is still a long-term problem for the Internet. This and still a long-term problem for the Internet. This and other problems in the IP protocol itself have been the other problems in the IP protocol itself have been the motivation for IPv6. motivation for IPv6.
  • 27. An IPv6 address is 128 bits long.
  • 28. IPv6 address in binary and hexadecimal colon notation