SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
‫شبكات‬
Classless Addressing
Classless Addressing
To overcome address depletion and give more organizations
access to the Internet, classless addressing was designed and
implemented. In this scheme.
Address Blocks
In classless addressing, when an entity, needs to be connected
to the Internet, it is granted a block (range) of addresses. The
size of the block (the number of addresses) varies based on the
nature and size of the entity.
An ISP, as the Internet service provider, may be given
thousands or hundreds of thousands based on the number of
customers it may serve.
Restriction
To simplify the handling of addresses, the Internet authorities
impose three restrictions on classless address blocks:
1. The addresses in a block must be contiguous, one after another.
2. The number of addresses in a block must be a power of 2 (1,
2,4,8,.etc)
3. The first address must be evenly divisible by the number of
addresses.
Example
Figure shows a block of addresses, in both binary and
dotted-decimal notation, granted to a small business that
needs 16 addresses.
We can see that the restrictions are applied to this block:
The addresses are contiguous. The number of addresses
is a power of 2 (16 = 24), and the first address is divisible
by 16.
The address and the /n notation completely define the whole block (the first
address, the last address, and the number of addresses).
First Address The first address in the block can be found by setting
the 32 - n rightmost bits in the binary notation of the address to 0s.
Example
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 00100 111
If we set 32−28 rightmost bits to 0, we get
11001101 00010000 00100101 00100000
or
205.16.37.32
Last Address
The last address in the block can be found by setting the 32 - n
rightmost bits in the binary notation of the address to 1s.
The last address in the block can be found by setting
the rightmost : 32 − n bits to 1s.
Example
Find the last address for the block.
205.16.37.39/28
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
Number of Addresses
The number of addresses in the block can be
found by using the formula : 232−n
Example
Find the number of addresses in Example 6.6.
Solution
The value of n is 28, which means that number
of addresses is 2 32−28 or 16.
205.16.37.32 205.16.37.47
→
205.16.37.39/28
Example
Another way to find the first address, the last address, and the
number of addresses is to represent the mask as a 32bit binary (or
8-digit hexadecimal) number. This is particularly useful when we
are writing a program to find these pieces of information. Ex: The
205.16.37.39/28 , /28 can be represented as (Mask Definition)
11111111 11111111 11111111 11110000
(twenty-eight 1s and four 0s).
Find
a. The first address
b. The last address
c. The number of addresses.
Solution
a. The first address can be found by ANDing the given
addresses with the mask. ANDing here is done bit by
bit. The result of ANDing 2 bits is 1 if both bits are 1s;
the result is 0 otherwise.
205.16.37.32
b. The last address can be found by ORing the given
addresses with the complement of the mask. ORing
here is done bit by bit. The result of ORing 2 bits is 0 if
both bits are 0s; the result is 1 otherwise. The
complement of a number is found by changing each 1
to 0 and each 0 to 1.
205.16.37.47
c. The number of addresses can be found by
complementing the mask, interpreting it as a decimal
number, and adding 1 to it.
A block of addresses is granted to a small organization. We know that one of the
addresses is 190.100.0.136/26. using Classless and Mask Definition methods
What is the:-
first address in the block: 190.100.0.128
Last address in the block: 190.100.0.191
Number of Addresses in the block: 64
Example:

More Related Content

PPTX
Network_layer_addressing.pptx
PPT
Chap 05
PPT
Subnet Masking in Computer Network--CST 2nd year by Tanushree Bhadra
PPTX
Lecture W4 CN IP Addressing P1.pptx
PPT
ip addressing _
PPTX
PPTX
ip addressing _
PPT
IPv4 Address uploading.ppt
Network_layer_addressing.pptx
Chap 05
Subnet Masking in Computer Network--CST 2nd year by Tanushree Bhadra
Lecture W4 CN IP Addressing P1.pptx
ip addressing _
ip addressing _
IPv4 Address uploading.ppt

Similar to Classless-Addressing.pdf.. network lecture (20)

PPT
PPT
Chapter 19
PPT
IPv4 Address, IPv6 Address and its types
PPTX
NETWORK LAYER - Logical Addressing
PPT
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
PPT
Chapter 19: Logical Addressing
PPT
Network Layer Logical Addressing related topics
PPT
Theory of Eng ADDRESSING IN IPV IPV6.ppt
PPT
19 Network Layer_Logical_Addressing
PDF
Module 4 part 2.pdf this is computer networs module for cse students for study
PDF
IP addressing in computer Networks explanation
PPT
network Addressing
PDF
Ch19 network layer-logical add
PPTX
CN Unit 3
PPT
IP Addressing.ppt Network layer IP addressing
PPT
Fiber Optical Networks and Data Communication
PPT
Classful_addressing_Class for IP Addressing
PPTX
ch 5.3 & 4 logical addrgggggggessing.pptx
PPT
IP-address trial.ppt
Chapter 19
IPv4 Address, IPv6 Address and its types
NETWORK LAYER - Logical Addressing
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Chapter 19: Logical Addressing
Network Layer Logical Addressing related topics
Theory of Eng ADDRESSING IN IPV IPV6.ppt
19 Network Layer_Logical_Addressing
Module 4 part 2.pdf this is computer networs module for cse students for study
IP addressing in computer Networks explanation
network Addressing
Ch19 network layer-logical add
CN Unit 3
IP Addressing.ppt Network layer IP addressing
Fiber Optical Networks and Data Communication
Classful_addressing_Class for IP Addressing
ch 5.3 & 4 logical addrgggggggessing.pptx
IP-address trial.ppt
Ad

More from OmerMohamed64 (12)

PDF
Electronic commerce courselecture one. Pdf
PPTX
Introduction of internet and technology.pptx
PDF
Electronic commerce Chapter three lecture.pdf
PDF
Introduction to informationsecurity lecture1.pdf
PPT
Informationsecurity management lecture.ppt
PPTX
ch21.pptx distribution database system storage
PPTX
ch23.pptx distrubuted database management
PPTX
ch4 - Copy.pptx intermediate structure query language
PPTX
ch5 - Copy.pptx advanced structure query language
PDF
Subnetting-Addressing.pdf lectures for networks
PPTX
ch10 - lecture big data - database concept 7th edition.pptx
PPT
chapter tow database system concepts seven edition
Electronic commerce courselecture one. Pdf
Introduction of internet and technology.pptx
Electronic commerce Chapter three lecture.pdf
Introduction to informationsecurity lecture1.pdf
Informationsecurity management lecture.ppt
ch21.pptx distribution database system storage
ch23.pptx distrubuted database management
ch4 - Copy.pptx intermediate structure query language
ch5 - Copy.pptx advanced structure query language
Subnetting-Addressing.pdf lectures for networks
ch10 - lecture big data - database concept 7th edition.pptx
chapter tow database system concepts seven edition
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
PPT
Teaching material agriculture food technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
A comparative analysis of optical character recognition models for extracting...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4
Teaching material agriculture food technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A comparative analysis of optical character recognition models for extracting...

Classless-Addressing.pdf.. network lecture

  • 2. Classless Addressing To overcome address depletion and give more organizations access to the Internet, classless addressing was designed and implemented. In this scheme. Address Blocks In classless addressing, when an entity, needs to be connected to the Internet, it is granted a block (range) of addresses. The size of the block (the number of addresses) varies based on the nature and size of the entity. An ISP, as the Internet service provider, may be given thousands or hundreds of thousands based on the number of customers it may serve.
  • 3. Restriction To simplify the handling of addresses, the Internet authorities impose three restrictions on classless address blocks: 1. The addresses in a block must be contiguous, one after another. 2. The number of addresses in a block must be a power of 2 (1, 2,4,8,.etc) 3. The first address must be evenly divisible by the number of addresses. Example Figure shows a block of addresses, in both binary and dotted-decimal notation, granted to a small business that needs 16 addresses.
  • 4. We can see that the restrictions are applied to this block: The addresses are contiguous. The number of addresses is a power of 2 (16 = 24), and the first address is divisible by 16.
  • 5. The address and the /n notation completely define the whole block (the first address, the last address, and the number of addresses). First Address The first address in the block can be found by setting the 32 - n rightmost bits in the binary notation of the address to 0s. Example 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 00100 111 If we set 32−28 rightmost bits to 0, we get 11001101 00010000 00100101 00100000 or 205.16.37.32
  • 6. Last Address The last address in the block can be found by setting the 32 - n rightmost bits in the binary notation of the address to 1s. The last address in the block can be found by setting the rightmost : 32 − n bits to 1s. Example Find the last address for the block. 205.16.37.39/28 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
  • 7. Number of Addresses The number of addresses in the block can be found by using the formula : 232−n Example Find the number of addresses in Example 6.6. Solution The value of n is 28, which means that number of addresses is 2 32−28 or 16. 205.16.37.32 205.16.37.47 → 205.16.37.39/28
  • 8. Example Another way to find the first address, the last address, and the number of addresses is to represent the mask as a 32bit binary (or 8-digit hexadecimal) number. This is particularly useful when we are writing a program to find these pieces of information. Ex: The 205.16.37.39/28 , /28 can be represented as (Mask Definition) 11111111 11111111 11111111 11110000 (twenty-eight 1s and four 0s). Find a. The first address b. The last address c. The number of addresses.
  • 9. Solution a. The first address can be found by ANDing the given addresses with the mask. ANDing here is done bit by bit. The result of ANDing 2 bits is 1 if both bits are 1s; the result is 0 otherwise. 205.16.37.32
  • 10. b. The last address can be found by ORing the given addresses with the complement of the mask. ORing here is done bit by bit. The result of ORing 2 bits is 0 if both bits are 0s; the result is 1 otherwise. The complement of a number is found by changing each 1 to 0 and each 0 to 1. 205.16.37.47
  • 11. c. The number of addresses can be found by complementing the mask, interpreting it as a decimal number, and adding 1 to it.
  • 12. A block of addresses is granted to a small organization. We know that one of the addresses is 190.100.0.136/26. using Classless and Mask Definition methods What is the:- first address in the block: 190.100.0.128 Last address in the block: 190.100.0.191 Number of Addresses in the block: 64 Example: