SlideShare une entreprise Scribd logo
1  sur  47
9.1
Network Layer:
Logical Addressing
Networking Fundamentals
2.2
The Internet Assigned Numbers Authority (IANA) is operated by the
Internet Corporation for Assigned Names and Numbers (ICANN). IANA manages the IP
address space allocations globally, cooperates with five Regional Internet Registries (RIRs) to
allocate IP address blocks to Local Internet Registries who allocate it to Internet Service
Providers and other entities. RIRs:
• African Network Information Centre (AfriNIC) for Africa
• American Registry for Internet Numbers (ARIN) for Canada, several parts of
the Caribbean region, and the United States.
• Asia-Pacific Network Information Centre (APNIC) for Asia, Australia, and
neighboring countries
• Latin American and Caribbean Network Information Centre (LACNIC) for
Latin America and parts of the Caribbean region
• RIPE NCC for Europe, the Middle East, and Central Asia
2.3
19.4
IPv4 ADDRESSESIPv4 ADDRESSES
AnAn IPv4 addressIPv4 address is ais a 32-bit32-bit address that uniquely andaddress that uniquely and
universally defines the connection of a device (foruniversally defines the connection of a device (for
example, a computer or a router) to the Internet.example, a computer or a router) to the Internet.
19.5
The address space of IPv4 is
232
or 4,294,967,296.
Note
19.6
Dotted-decimal notation and binary notation for an IPv4 address
Now to make your life easier, please write this in your note-books:
1
2 6 3 1
8 4 2 6 8 4 2 1
it all adds up to 255
19.7
Change the following IPv4 addresses from binary
notation to dotted-decimal notation.
Example 1
Solution
We replace each group of 8 bits with its equivalent
decimal number and add dots for separation.
19.8
Change the following IPv4 addresses from dotted-decimal
notation to binary notation.
Example 2
Solution
We replace each decimal number with its binary
equivalent.
19.9
Find the error, if any, in the following IPv4 addresses.
Example 3
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.
19.10
In classful addressing, the address
space is divided into five classes:
A, B, C, D, and E.
Note
19.11
Finding the classes in binary and dotted-decimal notation
Identifies the Net(work) or block of addresses. Identifies the Host.
19.12
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
Example 4
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 (0 – 127); the class is A.
d. The first byte is 252 (24- - 255); the class is E.
19.13
Number of blocks and block size in classful IPv4 addressing
A 0-127 256 ^ 3
B (128-191)*256 256 ^ 2
C (192-223)*256^2 256 ^ 1
D 1 (224-239)*256^3
E 1 (240-255)*256^3
19.14
In classful addressing, a large part of
the available addresses were wasted.
Note
19.15
Default masks for classful addressing
Masks help us find the Netid & Hostid, especially
in Classless Addressing.
19.16
19.17
• A subnet is defined by applying a bit mask, the subnet mask, to the IP
address. If a bit is On in the mask, that equivalent bit in the address is
interpreted as a network bit. If a bit in the mask is Off, the bit belongs to
the host part of the address. The subnet is only known locally. To the
rest of the Internet, the address is still interpreted as a standard IP
address.
• For example, the default mask that would be associated with standard
class B addresses is 255.255.0.0. The most commonly used subnet mask
extends the network portion of a class B address by an additional byte.
The subnet mask that does this is 255.255.255.0. The first two bytes
define the class B network; the third byte defines the subnet address;
the fourth byte defines the host on that subnet.
• However, defining subnet masks on byte boundaries is not a
requirement. The subnet mask is bit-oriented and can be applied to any
address class. For example, a small organization could subdivide a class C
address into four subnets with the mask 255.255.255.192.
19.18
Subnetting egs.
19.19
Subnetting egs.
19.20
Address Depletion - Classful
addressing, which is almost obsolete, is
replaced with classless addressing.
Note
19.21
Links you can explore
www.icann.org ; www.iana.org ; www.apnic.net
19.22
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 first address, when converted to a decimal
number, is 3,440,387,360, which when divided by 16
results in 215,024,210.
Example 5
19.23
Fig A block of 16 addresses granted to a small organization
19.24
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.
n can take any value from 0 to 32.
Note
Qn. Values of n for classful addressing?
19.25
The first address in the block can be
found by setting the rightmost
32 − n bits to 0s.
Note
19.26
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 shown in earlier Figure.
Example 6
19.27
The last address in the block can be
found by setting the rightmost
32 − n bits to 1s.
Note
19.28
Find the last address for the block in Example 6.
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 also the block shown in earlier Figure.
Example 7
19.29
The number of addresses in the block
can be found by using the formula
232−n
.
Note
19.30
Find the number of addresses in Example 6.
Example 8
Solution
The value of n is 28, which means that number
of addresses is 2 32−28
or 16.
19.31
Another way to find the first address, the last address, and
the number of addresses is to represent the mask as a 32-
bit binary number. This is particularly useful when we
are writing a program to find these pieces of information.
In Example 5 the /28 can be represented as
11111111 11111111 11111111 11110000
(twenty-eight 1s and four 0s).
Find
a. The first address
b. The last address
c. The number of addresses.
Example 9
19.32
Solution
a. The first address can be found by ANDing the given
addresses with the mask. ANDing here is done bit by
bit.
Example 9 (continued)
19.33
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.
Example 9 (continued)
19.34
c. The number of addresses can be found by
complementing the mask, interpreting it as a decimal
number, and adding 1 to it.
Example 9 (continued)
19.35
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. In above eg.
205.16.37.32 is the network address.
Note
19.36
Two levels of hierarchy in an IPv4 address : No Subnetting
suffix
Eg. area code & telephone no.
19.37
19.38
Variable Length Subnet Masks (VLSM)
In the previous example of subnetting, notice that the same subnet mask was applied for all
the subnets. This means that each subnet has the same number of available host addresses. You
can need this in some cases, but, in most cases, having the same subnet mask for all subnets
ends up wasting address space.
19.39
Configuration and addresses in the subnetted network
- Each router has an IP address for each subnetwork to which it is attached and each subnetwork has an IP address for
the router to which it is attached.
- The more host bits you use for a subnet mask, the more subnets you have available. However, the more subnets
available, the less host addresses available for the net.
19.40
Qn. Take address 29, 45 & 50 from the 3 subnets and find the subnet address.
19.41
Three-level hierarchy in an IPv4 address : Subnetting
Eg. area code, telephone no.(EPABX) & extn no.
19.42
An 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 10
19.43
Solution
Example 10 (continued)
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
19.44
Example 10 (continued)
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
19.45
Example 10 (continued)
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
Figure shows the situation.
19.46
An example of address allocation and distribution by an ISP
19.47
An Organisation is granted a block of addresses starting
with 204.17.5.0/24. It needs to distribute these addresses
to four Depts. as follows:
a. The first Dept. needs 128 addresses.
b. The second Dept. needs 64 addresses.
c. The third and fourth Depts. each need 32 addresses.
Design the subnets and support your answer with an
illustrative diagram.
Assignment

Contenu connexe

Tendances

Chap 04
Chap 04Chap 04
Chap 04IGNOU
 
19 Network Layer_Logical_Addressing
19 Network Layer_Logical_Addressing19 Network Layer_Logical_Addressing
19 Network Layer_Logical_AddressingAhmar Hashmi
 
Chap 05
Chap 05Chap 05
Chap 05IGNOU
 
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...shamishekhar
 
NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP hamsa nandhini
 
Lec 5(Ip Addressing and Subnets)
Lec 5(Ip Addressing and Subnets)Lec 5(Ip Addressing and Subnets)
Lec 5(Ip Addressing and Subnets)maamir farooq
 
Internet Technology
Internet TechnologyInternet Technology
Internet Technologyhome
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer NumericalsManisha Keim
 
Classless addressing
Classless addressingClassless addressing
Classless addressingIqra Abbas
 
Chapter5(i pv4 address)
Chapter5(i pv4 address)Chapter5(i pv4 address)
Chapter5(i pv4 address)raghad mejeed
 

Tendances (20)

Chapter 19
Chapter 19Chapter 19
Chapter 19
 
Ch19
Ch19Ch19
Ch19
 
Chap 04
Chap 04Chap 04
Chap 04
 
Ch2020
Ch2020Ch2020
Ch2020
 
19 Network Layer_Logical_Addressing
19 Network Layer_Logical_Addressing19 Network Layer_Logical_Addressing
19 Network Layer_Logical_Addressing
 
Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
Chap 05
Chap 05Chap 05
Chap 05
 
3 ip address
3 ip address3 ip address
3 ip address
 
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...
Network layer,ipv4, Classful Addressing,notations, Classless addressing,class...
 
NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP
 
Lec 5(Ip Addressing and Subnets)
Lec 5(Ip Addressing and Subnets)Lec 5(Ip Addressing and Subnets)
Lec 5(Ip Addressing and Subnets)
 
Internet Technology
Internet TechnologyInternet Technology
Internet Technology
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer Numericals
 
Ch05
Ch05Ch05
Ch05
 
About ip address
About ip addressAbout ip address
About ip address
 
Ch04
Ch04Ch04
Ch04
 
I pv4 addressing
I pv4 addressingI pv4 addressing
I pv4 addressing
 
Classless addressing
Classless addressingClassless addressing
Classless addressing
 
Chapter 20
Chapter 20Chapter 20
Chapter 20
 
Chapter5(i pv4 address)
Chapter5(i pv4 address)Chapter5(i pv4 address)
Chapter5(i pv4 address)
 

Similaire à 4a logical laddressing

Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptForouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptJayaprasanna4
 
20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks 20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks Kathirvel Ayyaswamy
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.pptsol zem
 
Subnetting in network layer in computer networks
Subnetting in network layer in computer networksSubnetting in network layer in computer networks
Subnetting in network layer in computer networkskarthiktyagi2
 
Network_layer_addressing.pptx
Network_layer_addressing.pptxNetwork_layer_addressing.pptx
Network_layer_addressing.pptxlaiba29012
 
Lecture W4 CN IP Addressing P1.pptx
Lecture W4 CN IP Addressing P1.pptxLecture W4 CN IP Addressing P1.pptx
Lecture W4 CN IP Addressing P1.pptxssuserc1e786
 
IPv4 Address uploading.ppt
IPv4 Address uploading.pptIPv4 Address uploading.ppt
IPv4 Address uploading.pptSanthiS10
 
IP addressing and subnetting.pptx
IP addressing and subnetting.pptxIP addressing and subnetting.pptx
IP addressing and subnetting.pptxnaseerahmad707715
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingVivek chan
 
ETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.pptETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.pptListonKiwoli1
 
IP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxIP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxgamerchan1
 
Umutima.ppt
Umutima.pptUmutima.ppt
Umutima.pptkigaliac
 
1606660774-ip-addresses-classful-3.ppt
1606660774-ip-addresses-classful-3.ppt1606660774-ip-addresses-classful-3.ppt
1606660774-ip-addresses-classful-3.pptPUSHPAKJAIN8
 

Similaire à 4a logical laddressing (20)

Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptForouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
 
20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks 20CS2007 Computer Communication Networks
20CS2007 Computer Communication Networks
 
ch19 (1).ppt
ch19 (1).pptch19 (1).ppt
ch19 (1).ppt
 
ch19new.ppt
ch19new.pptch19new.ppt
ch19new.ppt
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.ppt
 
CN Unit 3
CN Unit 3 CN Unit 3
CN Unit 3
 
Subnetting in network layer in computer networks
Subnetting in network layer in computer networksSubnetting in network layer in computer networks
Subnetting in network layer in computer networks
 
Network_layer_addressing.pptx
Network_layer_addressing.pptxNetwork_layer_addressing.pptx
Network_layer_addressing.pptx
 
Ch19
Ch19Ch19
Ch19
 
Lecture W4 CN IP Addressing P1.pptx
Lecture W4 CN IP Addressing P1.pptxLecture W4 CN IP Addressing P1.pptx
Lecture W4 CN IP Addressing P1.pptx
 
IPv4 Address uploading.ppt
IPv4 Address uploading.pptIPv4 Address uploading.ppt
IPv4 Address uploading.ppt
 
IP addressing and subnetting.pptx
IP addressing and subnetting.pptxIP addressing and subnetting.pptx
IP addressing and subnetting.pptx
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
 
Explaining ip address
Explaining ip addressExplaining ip address
Explaining ip address
 
chapter 6.pptx
chapter 6.pptxchapter 6.pptx
chapter 6.pptx
 
Ch7 IP addressing.pptx
Ch7 IP addressing.pptxCh7 IP addressing.pptx
Ch7 IP addressing.pptx
 
ETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.pptETT 05203 Lecture 5 IP addressing.ppt
ETT 05203 Lecture 5 IP addressing.ppt
 
IP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxIP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptx
 
Umutima.ppt
Umutima.pptUmutima.ppt
Umutima.ppt
 
1606660774-ip-addresses-classful-3.ppt
1606660774-ip-addresses-classful-3.ppt1606660774-ip-addresses-classful-3.ppt
1606660774-ip-addresses-classful-3.ppt
 

Plus de kavish dani

4b internet protocol
4b internet protocol4b internet protocol
4b internet protocolkavish dani
 
4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicastingkavish dani
 
1b network models
1b network models1b network models
1b network modelskavish dani
 
3d connecting networks
3d connecting networks3d connecting networks
3d connecting networkskavish dani
 
3b multiple access
3b multiple access3b multiple access
3b multiple accesskavish dani
 
3a data link layer continued
3a data link layer continued3a data link layer continued
3a data link layer continuedkavish dani
 
3a data link layer
3a data link layer 3a data link layer
3a data link layer kavish dani
 
2c wired transmission
2c wired transmission2c wired transmission
2c wired transmissionkavish dani
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networkskavish dani
 
2a transmission media
2a transmission  media2a transmission  media
2a transmission mediakavish dani
 
1a introduction to network fundamentals
1a introduction to network fundamentals1a introduction to network fundamentals
1a introduction to network fundamentalskavish dani
 

Plus de kavish dani (14)

4d routing
4d routing4d routing
4d routing
 
4b internet protocol
4b internet protocol4b internet protocol
4b internet protocol
 
4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting4c Address Mapping, Error Reporting and Multicasting
4c Address Mapping, Error Reporting and Multicasting
 
1b network models
1b network models1b network models
1b network models
 
3d connecting networks
3d connecting networks3d connecting networks
3d connecting networks
 
3c ethernet
3c ethernet3c ethernet
3c ethernet
 
3b multiple access
3b multiple access3b multiple access
3b multiple access
 
3a data link layer continued
3a data link layer continued3a data link layer continued
3a data link layer continued
 
3a data link layer
3a data link layer 3a data link layer
3a data link layer
 
2c wired transmission
2c wired transmission2c wired transmission
2c wired transmission
 
2b switching in networks
2b switching in networks2b switching in networks
2b switching in networks
 
2a transmission media
2a transmission  media2a transmission  media
2a transmission media
 
1a introduction to network fundamentals
1a introduction to network fundamentals1a introduction to network fundamentals
1a introduction to network fundamentals
 
5 forces model
5 forces model5 forces model
5 forces model
 

Dernier

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 

Dernier (20)

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 

4a logical laddressing

  • 2. 2.2 The Internet Assigned Numbers Authority (IANA) is operated by the Internet Corporation for Assigned Names and Numbers (ICANN). IANA manages the IP address space allocations globally, cooperates with five Regional Internet Registries (RIRs) to allocate IP address blocks to Local Internet Registries who allocate it to Internet Service Providers and other entities. RIRs: • African Network Information Centre (AfriNIC) for Africa • American Registry for Internet Numbers (ARIN) for Canada, several parts of the Caribbean region, and the United States. • Asia-Pacific Network Information Centre (APNIC) for Asia, Australia, and neighboring countries • Latin American and Caribbean Network Information Centre (LACNIC) for Latin America and parts of the Caribbean region • RIPE NCC for Europe, the Middle East, and Central Asia
  • 3. 2.3
  • 4. 19.4 IPv4 ADDRESSESIPv4 ADDRESSES AnAn IPv4 addressIPv4 address is ais a 32-bit32-bit address that uniquely andaddress that uniquely and universally defines the connection of a device (foruniversally defines the connection of a device (for example, a computer or a router) to the Internet.example, a computer or a router) to the Internet.
  • 5. 19.5 The address space of IPv4 is 232 or 4,294,967,296. Note
  • 6. 19.6 Dotted-decimal notation and binary notation for an IPv4 address Now to make your life easier, please write this in your note-books: 1 2 6 3 1 8 4 2 6 8 4 2 1 it all adds up to 255
  • 7. 19.7 Change the following IPv4 addresses from binary notation to dotted-decimal notation. Example 1 Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation.
  • 8. 19.8 Change the following IPv4 addresses from dotted-decimal notation to binary notation. Example 2 Solution We replace each decimal number with its binary equivalent.
  • 9. 19.9 Find the error, if any, in the following IPv4 addresses. Example 3 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.
  • 10. 19.10 In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Note
  • 11. 19.11 Finding the classes in binary and dotted-decimal notation Identifies the Net(work) or block of addresses. Identifies the Host.
  • 12. 19.12 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 Example 4 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 (0 – 127); the class is A. d. The first byte is 252 (24- - 255); the class is E.
  • 13. 19.13 Number of blocks and block size in classful IPv4 addressing A 0-127 256 ^ 3 B (128-191)*256 256 ^ 2 C (192-223)*256^2 256 ^ 1 D 1 (224-239)*256^3 E 1 (240-255)*256^3
  • 14. 19.14 In classful addressing, a large part of the available addresses were wasted. Note
  • 15. 19.15 Default masks for classful addressing Masks help us find the Netid & Hostid, especially in Classless Addressing.
  • 16. 19.16
  • 17. 19.17 • A subnet is defined by applying a bit mask, the subnet mask, to the IP address. If a bit is On in the mask, that equivalent bit in the address is interpreted as a network bit. If a bit in the mask is Off, the bit belongs to the host part of the address. The subnet is only known locally. To the rest of the Internet, the address is still interpreted as a standard IP address. • For example, the default mask that would be associated with standard class B addresses is 255.255.0.0. The most commonly used subnet mask extends the network portion of a class B address by an additional byte. The subnet mask that does this is 255.255.255.0. The first two bytes define the class B network; the third byte defines the subnet address; the fourth byte defines the host on that subnet. • However, defining subnet masks on byte boundaries is not a requirement. The subnet mask is bit-oriented and can be applied to any address class. For example, a small organization could subdivide a class C address into four subnets with the mask 255.255.255.192.
  • 20. 19.20 Address Depletion - Classful addressing, which is almost obsolete, is replaced with classless addressing. Note
  • 21. 19.21 Links you can explore www.icann.org ; www.iana.org ; www.apnic.net
  • 22. 19.22 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 first address, when converted to a decimal number, is 3,440,387,360, which when divided by 16 results in 215,024,210. Example 5
  • 23. 19.23 Fig A block of 16 addresses granted to a small organization
  • 24. 19.24 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. n can take any value from 0 to 32. Note Qn. Values of n for classful addressing?
  • 25. 19.25 The first address in the block can be found by setting the rightmost 32 − n bits to 0s. Note
  • 26. 19.26 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 shown in earlier Figure. Example 6
  • 27. 19.27 The last address in the block can be found by setting the rightmost 32 − n bits to 1s. Note
  • 28. 19.28 Find the last address for the block in Example 6. 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 also the block shown in earlier Figure. Example 7
  • 29. 19.29 The number of addresses in the block can be found by using the formula 232−n . Note
  • 30. 19.30 Find the number of addresses in Example 6. Example 8 Solution The value of n is 28, which means that number of addresses is 2 32−28 or 16.
  • 31. 19.31 Another way to find the first address, the last address, and the number of addresses is to represent the mask as a 32- bit binary number. This is particularly useful when we are writing a program to find these pieces of information. In Example 5 the /28 can be represented as 11111111 11111111 11111111 11110000 (twenty-eight 1s and four 0s). Find a. The first address b. The last address c. The number of addresses. Example 9
  • 32. 19.32 Solution a. The first address can be found by ANDing the given addresses with the mask. ANDing here is done bit by bit. Example 9 (continued)
  • 33. 19.33 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. Example 9 (continued)
  • 34. 19.34 c. The number of addresses can be found by complementing the mask, interpreting it as a decimal number, and adding 1 to it. Example 9 (continued)
  • 35. 19.35 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. In above eg. 205.16.37.32 is the network address. Note
  • 36. 19.36 Two levels of hierarchy in an IPv4 address : No Subnetting suffix Eg. area code & telephone no.
  • 37. 19.37
  • 38. 19.38 Variable Length Subnet Masks (VLSM) In the previous example of subnetting, notice that the same subnet mask was applied for all the subnets. This means that each subnet has the same number of available host addresses. You can need this in some cases, but, in most cases, having the same subnet mask for all subnets ends up wasting address space.
  • 39. 19.39 Configuration and addresses in the subnetted network - Each router has an IP address for each subnetwork to which it is attached and each subnetwork has an IP address for the router to which it is attached. - The more host bits you use for a subnet mask, the more subnets you have available. However, the more subnets available, the less host addresses available for the net.
  • 40. 19.40 Qn. Take address 29, 45 & 50 from the 3 subnets and find the subnet address.
  • 41. 19.41 Three-level hierarchy in an IPv4 address : Subnetting Eg. area code, telephone no.(EPABX) & extn no.
  • 42. 19.42 An 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 10
  • 43. 19.43 Solution Example 10 (continued) 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
  • 44. 19.44 Example 10 (continued) 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
  • 45. 19.45 Example 10 (continued) 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 Figure shows the situation.
  • 46. 19.46 An example of address allocation and distribution by an ISP
  • 47. 19.47 An Organisation is granted a block of addresses starting with 204.17.5.0/24. It needs to distribute these addresses to four Depts. as follows: a. The first Dept. needs 128 addresses. b. The second Dept. needs 64 addresses. c. The third and fourth Depts. each need 32 addresses. Design the subnets and support your answer with an illustrative diagram. Assignment