SlideShare ist ein Scribd-Unternehmen logo
1 von 42
IP Addresses:
       Classful Addressing

M cGraw-H ill       ©T he M cGraw-H ill C ompanies, I nc., 2000
CONTENTS
      • INTRODUCTION
      • CLASSFUL ADDRESSING
      • OTHER ISSUES
      • A SAMPLE INTERNET




M cGraw-H ill                 ©T he M cGraw-H ill C ompanies, I nc., 2000
4.1

                      INTRODUCTION




M cGraw-H ill                   ©T he M cGraw-H ill C ompanies, I nc., 2000
An IP address is a
                      32-bit
                     address.




M cGraw-H ill                    ©T he M cGraw-H ill C ompanies, I nc., 2000
The IP addresses
                      are
                     unique.



M cGraw-H ill                  ©T he M cGraw-H ill C ompanies, I nc., 2000
Address Space
                                …………..
            addr1     …………..
                          addr15
                addr2 …………..     …………..
              …………..
                         addr41 addr226
                  addr31
            …………..           …………..



M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
RULE:
                                     …………..
                       …………..
            addr1 protocol uses N bits to
             If a
                              addr15
                addr2 …………..
             define an address,        …………..
              …………..
             the address space is 2N
                             addr41 addr226
             because each bit can have two
                   addr31
                                 …………..
            ………….. values (0 and 1)
             different
                and N bits can have 2N values.

M cGraw-H ill                           ©T he M cGraw-H ill C ompanies, I nc., 2000
The address space of IPv4 is
                            232
                             or
                       4,294,967,296.


M cGraw-H ill                           ©T he M cGraw-H ill C ompanies, I nc., 2000
Binary Notation

         01110101 10010101 00011101 11101010




M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-1
                Dotted-decimal notation




M cGraw-H ill                        ©T he M cGraw-H ill C ompanies, I nc., 2000
4.2
                       CLASSFUL
                      ADDRESSING



M cGraw-H ill                  ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-2
                Occupation of the address space




M cGraw-H ill                           ©T he M cGraw-H ill C ompanies, I nc., 2000
In classful addressing,
                  the address space is
                divided into five classes:
                    A, B, C, D, and E.




M cGraw-H ill                         ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-3


                Finding the class in binary notation




M cGraw-H ill                              ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-4
                Finding the address class




M cGraw-H ill                          ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 5

     How can we prove that we                               have
     2,147,483,648 addresses in class A?
   Solution

    In class A, only 1 bit defines the class.
    The remaining 31 bits are available
    for the address. With 31 bits,
    we can have 231 or 2,147,483,648 addresses.
M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 6

     Find the class of the address:
     00000001 00001011 00001011 11101111


   Solution

   The first bit is 0. This is a class A address.


M cGraw-H ill                         ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 6 (Continued)

     Find the class of the address:
     11000001 10000011 00011011 11111111


   Solution

   The first 2 bits are 1; the third bit is 0.
   This is a class C address.

M cGraw-H ill                         ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-5


                Finding the class in decimal notation




M cGraw-H ill                             ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 7

     Find the class of the address:
     227.12.14.87


   Solution

   The first byte is 227 (between 224 and 239);
   the class is D.

M cGraw-H ill                         ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 7 (Continued)

     Find the class of the address:
     193.14.56.22


   Solution

   The first byte is 193 (between 192 and 223);
   the class is C.

M cGraw-H ill                         ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-6
                Netid and hostid




M cGraw-H ill                      ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-7
                Blocks in class A




M cGraw-H ill                       ©T he M cGraw-H ill C ompanies, I nc., 2000
Millions of class A addresses
                         are wasted.




M cGraw-H ill                          ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-8
                Blocks in class B




M cGraw-H ill                       ©T he M cGraw-H ill C ompanies, I nc., 2000
Many class B addresses
                     are wasted.




M cGraw-H ill                      ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-9
                Blocks in class C




M cGraw-H ill                       ©T he M cGraw-H ill C ompanies, I nc., 2000
The number of addresses in
                        a class C block
                        is smaller than
                the needs of most organizations.




M cGraw-H ill                           ©T he M cGraw-H ill C ompanies, I nc., 2000
Class D addresses
                are used for multicasting;
                       there is only
                  one block in this class.




M cGraw-H ill                        ©T he M cGraw-H ill C ompanies, I nc., 2000
Class E addresses are reserved
                    for special purposes;
                 most of the block is wasted.




M cGraw-H ill                          ©T he M cGraw-H ill C ompanies, I nc., 2000
Network Addresses
       The network address is the first address.

       The network address defines the network to the
       rest of the Internet.
       Given the network address, we can find the
       class of the address, the block, and the range of
       the addresses in the block


M cGraw-H ill                            ©T he M cGraw-H ill C ompanies, I nc., 2000
In classful addressing,
                      the network address
                (the first address in the block)
                  is the one that is assigned
                      to the organization.



M cGraw-H ill                            ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 9

     Given the network address 17.0.0.0, find the
       class, the block, and the range of the
       addresses.

   Solution

 The class is A because the first byte is between
 0 and 127. The block has a netid of 17.
 The addresses range from 17.0.0.0 to
 17.255.255.255.
M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 10

  Given the network address 132.21.0.0, find
    the class, the block, and the range of the
    addresses.

   Solution

 The class is B because the first byte is between
 128 and 191. The block has a netid of
 132.21. The addresses range from
 132.21.0.0 to 132.21.255.255.
M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 11

  Given the network address 220.34.76.0, find
    the class, the block, and the range of the
    addresses.

   Solution

The class is C because the first byte is between
192 and 223. The block has a netid of 220.34.76.
The addresses range from 220.34.76.0
to 220.34.76.255.
M cGraw-H ill                    ©T he M cGraw-H ill C ompanies, I nc., 2000
Mask
       A mask is a 32-bit binary number that gives the
       first address in the block (the network address)
       when bitwise ANDed with an address in the
       block.




M cGraw-H ill                           ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-10
                Masking concept




M cGraw-H ill                     ©T he M cGraw-H ill C ompanies, I nc., 2000
Figure 4-11
                AND operation




M cGraw-H ill                   ©T he M cGraw-H ill C ompanies, I nc., 2000
The network address is the
                beginning address of each block.
                   It can be found by applying
                        the default mask to
                any of the addresses in the block
                         (including itself).
                 It retains the netid of the block
                   and sets the hostid to zero.

M cGraw-H ill                            ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 12

  Given the address 23.56.7.91 and the default
    class A mask, find the beginning address
    (network address).

   Solution

The default mask is 255.0.0.0, which means
that only the first byte is preserved
and the other 3 bytes are set to 0s.
The network address is 23.0.0.0.
M cGraw-H ill                    ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 13

  Given the address 132.6.17.85 and the
    default class B mask, find the beginning
    address (network address).

   Solution

The default mask is 255.255.0.0, which means
that the first 2 bytes are preserved
and the other 2 bytes are set to 0s.
The network address is 132.6.0.0.
M cGraw-H ill                  ©T he M cGraw-H ill C ompanies, I nc., 2000
Example 14

  Given the address 201.180.56.5 and the class
    C default mask, find the beginning
    address (network address).

   Solution

   The default mask is 255.255.255.0,
   which means that the first 3 bytes are
   preserved and the last byte is set to 0.
   The network address is 201.180.56.0.
M cGraw-H ill                       ©T he M cGraw-H ill C ompanies, I nc., 2000

Weitere ähnliche Inhalte

Was ist angesagt?

Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Sateesh Allu
 
A method to determine partial weight enumerator for linear block codes
A method to determine partial weight enumerator for linear block codesA method to determine partial weight enumerator for linear block codes
A method to determine partial weight enumerator for linear block codesAlexander Decker
 
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...Editor IJCATR
 
Arithmetic Operations in Multi-Valued Logic
Arithmetic Operations in Multi-Valued LogicArithmetic Operations in Multi-Valued Logic
Arithmetic Operations in Multi-Valued LogicVLSICS Design
 
Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logicsmumbahelp
 
Modified Golomb Code For Integer Representation
Modified Golomb Code For Integer RepresentationModified Golomb Code For Integer Representation
Modified Golomb Code For Integer RepresentationIJSRD
 
Error control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesError control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesIAEME Publication
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...IJERA Editor
 
Seminary of numerical analysis 2010
Seminary of numerical analysis 2010Seminary of numerical analysis 2010
Seminary of numerical analysis 2010Jaroslav Broz
 

Was ist angesagt? (17)

Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1
 
Grids implementation
Grids implementationGrids implementation
Grids implementation
 
NET_Solved ans
NET_Solved ansNET_Solved ans
NET_Solved ans
 
Ch19
Ch19Ch19
Ch19
 
A method to determine partial weight enumerator for linear block codes
A method to determine partial weight enumerator for linear block codesA method to determine partial weight enumerator for linear block codes
A method to determine partial weight enumerator for linear block codes
 
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
 
Arithmetic Operations in Multi-Valued Logic
Arithmetic Operations in Multi-Valued LogicArithmetic Operations in Multi-Valued Logic
Arithmetic Operations in Multi-Valued Logic
 
Bca1040 digital logic
Bca1040   digital logicBca1040   digital logic
Bca1040 digital logic
 
Modified Golomb Code For Integer Representation
Modified Golomb Code For Integer RepresentationModified Golomb Code For Integer Representation
Modified Golomb Code For Integer Representation
 
Error control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codesError control coding using bose chaudhuri hocquenghem bch codes
Error control coding using bose chaudhuri hocquenghem bch codes
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
Y03301460154
Y03301460154Y03301460154
Y03301460154
 
It3416071612
It3416071612It3416071612
It3416071612
 
Lp2520162020
Lp2520162020Lp2520162020
Lp2520162020
 
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...
Performance Study of BCH Error Correcting Codes Using the Bit Error Rate Term...
 
Chapter 3 2
Chapter 3 2Chapter 3 2
Chapter 3 2
 
Seminary of numerical analysis 2010
Seminary of numerical analysis 2010Seminary of numerical analysis 2010
Seminary of numerical analysis 2010
 

Andere mochten auch

OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)
OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)
OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)Tutun Juhana
 
Protocol Ppt[1]
Protocol Ppt[1]Protocol Ppt[1]
Protocol Ppt[1]anil933
 
OSI MODEL AND ITS PROTOCOL
OSI MODEL AND ITS PROTOCOLOSI MODEL AND ITS PROTOCOL
OSI MODEL AND ITS PROTOCOLIkhlas Rahman
 

Andere mochten auch (6)

Tcp ip
Tcp ipTcp ip
Tcp ip
 
Mod4
Mod4Mod4
Mod4
 
OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)
OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)
OSI Reference Model and TCP/IP (Lecture #3 ET3003 Sem1 2014/2015)
 
Protocol Ppt[1]
Protocol Ppt[1]Protocol Ppt[1]
Protocol Ppt[1]
 
OSI MODEL AND ITS PROTOCOL
OSI MODEL AND ITS PROTOCOLOSI MODEL AND ITS PROTOCOL
OSI MODEL AND ITS PROTOCOL
 
OSI Model
OSI ModelOSI Model
OSI Model
 

Ähnlich wie IP Addresses: Classful Addressing Explained

Subnetting supernetting
Subnetting supernettingSubnetting supernetting
Subnetting supernettingwacasr12
 
Network_layer_addressing.pptx
Network_layer_addressing.pptxNetwork_layer_addressing.pptx
Network_layer_addressing.pptxlaiba29012
 
IPv4 Address uploading.ppt
IPv4 Address uploading.pptIPv4 Address uploading.ppt
IPv4 Address uploading.pptSanthiS10
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.pptsol zem
 
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
 
network Addressing
network Addressingnetwork Addressing
network AddressingTauseef khan
 
4a logical laddressing
4a logical laddressing4a logical laddressing
4a logical laddressingkavish dani
 
IP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdfIP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdffanuel22
 
Mi0035 summer-2016
Mi0035 summer-2016Mi0035 summer-2016
Mi0035 summer-2016smumbahelp
 
Mi0035 summer-2016
Mi0035 summer-2016Mi0035 summer-2016
Mi0035 summer-2016smumbahelp
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingBisrat Girma
 
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
 
Chapter5(i pv4 address)
Chapter5(i pv4 address)Chapter5(i pv4 address)
Chapter5(i pv4 address)raghad mejeed
 
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
 

Ähnlich wie IP Addresses: Classful Addressing Explained (20)

Ch04
Ch04Ch04
Ch04
 
Subnetting supernetting
Subnetting supernettingSubnetting supernetting
Subnetting supernetting
 
Network_layer_addressing.pptx
Network_layer_addressing.pptxNetwork_layer_addressing.pptx
Network_layer_addressing.pptx
 
IPv4 Address uploading.ppt
IPv4 Address uploading.pptIPv4 Address uploading.ppt
IPv4 Address uploading.ppt
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.ppt
 
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
 
Explaining ip address
Explaining ip addressExplaining ip address
Explaining ip address
 
network Addressing
network Addressingnetwork Addressing
network Addressing
 
4a logical laddressing
4a logical laddressing4a logical laddressing
4a logical laddressing
 
Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
IP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdfIP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdf
 
Mi0035 summer-2016
Mi0035 summer-2016Mi0035 summer-2016
Mi0035 summer-2016
 
Mi0035 summer-2016
Mi0035 summer-2016Mi0035 summer-2016
Mi0035 summer-2016
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP Addressing
 
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
 
Chapter5(i pv4 address)
Chapter5(i pv4 address)Chapter5(i pv4 address)
Chapter5(i pv4 address)
 
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
 
Ch05
Ch05Ch05
Ch05
 
IP addressing
IP addressingIP addressing
IP addressing
 
IP addressing
IP addressingIP addressing
IP addressing
 

Mehr von Akshay Nagpurkar (20)

4.osi model
4.osi model4.osi model
4.osi model
 
L6 mecse ncc
L6 mecse nccL6 mecse ncc
L6 mecse ncc
 
1.network topology
1.network topology1.network topology
1.network topology
 
1.lan man wan
1.lan man wan1.lan man wan
1.lan man wan
 
Dcunit4 transmission media
Dcunit4 transmission mediaDcunit4 transmission media
Dcunit4 transmission media
 
Ppl for students unit 4 and 5
Ppl for students unit 4 and 5Ppl for students unit 4 and 5
Ppl for students unit 4 and 5
 
Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3
 
Ppl for students unit 4 and 5
Ppl for students unit 4 and 5Ppl for students unit 4 and 5
Ppl for students unit 4 and 5
 
234 rb trees2x2
234 rb trees2x2234 rb trees2x2
234 rb trees2x2
 
Ppl home assignment_unit4
Ppl home assignment_unit4Ppl home assignment_unit4
Ppl home assignment_unit4
 
Ppl home assignment_unit5
Ppl home assignment_unit5Ppl home assignment_unit5
Ppl home assignment_unit5
 
3 multiplexing-wdm
3 multiplexing-wdm3 multiplexing-wdm
3 multiplexing-wdm
 
2 multiplexing
2 multiplexing2 multiplexing
2 multiplexing
 
1 multiplexing
1 multiplexing1 multiplexing
1 multiplexing
 
Pcm pulse codemodulation-2
Pcm pulse codemodulation-2Pcm pulse codemodulation-2
Pcm pulse codemodulation-2
 
Modulation techniq of modem
Modulation techniq of modemModulation techniq of modem
Modulation techniq of modem
 
Ppl home assignment_unit3
Ppl home assignment_unit3Ppl home assignment_unit3
Ppl home assignment_unit3
 
Ppl home assignment_unit2
Ppl home assignment_unit2Ppl home assignment_unit2
Ppl home assignment_unit2
 
Ppl home assignment_unit1
Ppl home assignment_unit1Ppl home assignment_unit1
Ppl home assignment_unit1
 
Ppl syllabus new
Ppl syllabus newPpl syllabus new
Ppl syllabus new
 

IP Addresses: Classful Addressing Explained

  • 1. IP Addresses: Classful Addressing M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 2. CONTENTS • INTRODUCTION • CLASSFUL ADDRESSING • OTHER ISSUES • A SAMPLE INTERNET M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 3. 4.1 INTRODUCTION M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 4. An IP address is a 32-bit address. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 5. The IP addresses are unique. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 6. Address Space ………….. addr1 ………….. addr15 addr2 ………….. ………….. ………….. addr41 addr226 addr31 ………….. ………….. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 7. RULE: ………….. ………….. addr1 protocol uses N bits to If a addr15 addr2 ………….. define an address, ………….. ………….. the address space is 2N addr41 addr226 because each bit can have two addr31 ………….. ………….. values (0 and 1) different and N bits can have 2N values. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 8. The address space of IPv4 is 232 or 4,294,967,296. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 9. Binary Notation 01110101 10010101 00011101 11101010 M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 10. Figure 4-1 Dotted-decimal notation M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 11. 4.2 CLASSFUL ADDRESSING M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 12. Figure 4-2 Occupation of the address space M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 13. In classful addressing, the address space is divided into five classes: A, B, C, D, and E. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 14. Figure 4-3 Finding the class in binary notation M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 15. Figure 4-4 Finding the address class M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 16. Example 5 How can we prove that we have 2,147,483,648 addresses in class A? Solution In class A, only 1 bit defines the class. The remaining 31 bits are available for the address. With 31 bits, we can have 231 or 2,147,483,648 addresses. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 17. Example 6 Find the class of the address: 00000001 00001011 00001011 11101111 Solution The first bit is 0. This is a class A address. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 18. Example 6 (Continued) Find the class of the address: 11000001 10000011 00011011 11111111 Solution The first 2 bits are 1; the third bit is 0. This is a class C address. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 19. Figure 4-5 Finding the class in decimal notation M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 20. Example 7 Find the class of the address: 227.12.14.87 Solution The first byte is 227 (between 224 and 239); the class is D. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 21. Example 7 (Continued) Find the class of the address: 193.14.56.22 Solution The first byte is 193 (between 192 and 223); the class is C. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 22. Figure 4-6 Netid and hostid M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 23. Figure 4-7 Blocks in class A M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 24. Millions of class A addresses are wasted. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 25. Figure 4-8 Blocks in class B M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 26. Many class B addresses are wasted. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 27. Figure 4-9 Blocks in class C M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 28. The number of addresses in a class C block is smaller than the needs of most organizations. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 29. Class D addresses are used for multicasting; there is only one block in this class. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 30. Class E addresses are reserved for special purposes; most of the block is wasted. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 31. Network Addresses The network address is the first address. The network address defines the network to the rest of the Internet. Given the network address, we can find the class of the address, the block, and the range of the addresses in the block M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 32. In classful addressing, the network address (the first address in the block) is the one that is assigned to the organization. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 33. Example 9 Given the network address 17.0.0.0, find the class, the block, and the range of the addresses. Solution The class is A because the first byte is between 0 and 127. The block has a netid of 17. The addresses range from 17.0.0.0 to 17.255.255.255. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 34. Example 10 Given the network address 132.21.0.0, find the class, the block, and the range of the addresses. Solution The class is B because the first byte is between 128 and 191. The block has a netid of 132.21. The addresses range from 132.21.0.0 to 132.21.255.255. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 35. Example 11 Given the network address 220.34.76.0, find the class, the block, and the range of the addresses. Solution The class is C because the first byte is between 192 and 223. The block has a netid of 220.34.76. The addresses range from 220.34.76.0 to 220.34.76.255. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 36. Mask A mask is a 32-bit binary number that gives the first address in the block (the network address) when bitwise ANDed with an address in the block. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 37. Figure 4-10 Masking concept M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 38. Figure 4-11 AND operation M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 39. The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 40. Example 12 Given the address 23.56.7.91 and the default class A mask, find the beginning address (network address). Solution The default mask is 255.0.0.0, which means that only the first byte is preserved and the other 3 bytes are set to 0s. The network address is 23.0.0.0. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 41. Example 13 Given the address 132.6.17.85 and the default class B mask, find the beginning address (network address). Solution The default mask is 255.255.0.0, which means that the first 2 bytes are preserved and the other 2 bytes are set to 0s. The network address is 132.6.0.0. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000
  • 42. Example 14 Given the address 201.180.56.5 and the class C default mask, find the beginning address (network address). Solution The default mask is 255.255.255.0, which means that the first 3 bytes are preserved and the last byte is set to 0. The network address is 201.180.56.0. M cGraw-H ill ©T he M cGraw-H ill C ompanies, I nc., 2000