SlideShare a Scribd company logo
1 of 21
Sub Topic       : IP Addressing Concepts
Teaching Aids   : Diagrams, Animations




                          --               1
Recap

    In the previous class, you have learnt about


•       Leased line, DSL and Cable MODEM




                              --                   2
Objectives
 On completion of this period, you will be able to know
 about

• What is an IP Address?

• What is network prefix and host number?

• What is Internet address?

• What is sub-netting and no sub-netting?



                           --                             3
What is an IP Address?
• Internet identifier including information about how to
  reach a network location (via the Internet routing
  system)

• IPv4: 32-bit number. Written in Dotted Decimal
  Notation 205.150.58.7.
   – 4 billion different host addresses

• IPv6: 128-bit number. Written in Hex Decimal
  Notation
       2001:0503:0C27:0000:0000:0000:0000:0000
   –     16 billion network addresses


                            --                             4
IP Addresses

                                                           32 bits
             version     header      Type of Service/TOS                  Total Length (in bytes)
             (4 bits)    length            (8 bits)                              (16 bits)
                                                               flags
                        Identification (16 bits)                                Fragment Offset (13 bits)
                                                              (3 bits)
              TTL Time-to-Live              Protocol
                                                                         Header Checksum (16 bits)
                  (8 bits)                   (8 bits)

                                               Source IP address (32 bits)

                                             Destination IP address (32 bits)




Ethernet Header    IP Header            TCP Header                   Application data                 Ethernet Trailer

                                                   Ethernet frame

                        Fig .1                        --                                                    5
Network Prefix and Host Number

•The network prefix identifies a network and the host
number identifies a specific host (actually, interface on the
network)
      network prefix                host number
•How do we know how long the network prefix is?
   –Before 1993: The network prefix is implicitly defined
   (see class-based addressing)


   –After 1993: The network prefix is indicated by a net
   mask
                               --                           6
Dotted Decimal Notation

• IP addresses are written in a so-called dotted
  decimal notation
• Each byte is identified by a decimal number in the
   range [0..255]:
     10000000         10001111 10001001             10010000
         1st Byte        2nd Byte        3rd Byte       4th Byte
             = 128       = 143           = 137           = 144


     Fig.2                128.143.137.144
                                    --                           7
IP Address
• Every interface have a unique Internet address (IP address)
• Consist of 2 parts – network id and host id
• 32-bit address
• 5 Classes
   –A – 0.0.0.0 to 127.255.255.255 (224 nodes)
   –B – 128.0.0.0 to 191.255.255.255 (216 nodes)
   –C – 192.0.0.0 to 223.255.255.255 (28 nodes)
   –D – 224.0.0.0 to 239.255.255.255
   –E – 240.0.0.0 to 247.255.255.255

                               --                        8
IP Address           contd….

•   When Internet addresses were standardized (early
    1980s), the Internet address space was divided up into
    classes
     • Class A: Network prefix is 8 bits long
     • Class B: Network prefix is 16 bits long
     • Class C: Network prefix is 24 bits long


•   Each IP address contained a key which identifies the
    class
     • Class A: IP address starts with “0”
     • Class B: IP address starts with “10”
     • Class C: IP address starts with “110”


                             --                            9
IP address                                            contd…

          bit #   0   1                            7 8                                                                              31

Class A           0
                      Network Prefix                                              Host Number
                                8 bits                                                   24 bits

          bit #   0   1 2                                              15   16                                                      31

Class B           10               network id                                                      host

                                Network Prefix                                            Host Number
                                         16 bits                                                   16 bits

          bit #   0   1 2 3                                                                              23   24                    31

Class C           110                                     network id                                                    host

                                                    Network Prefix                                                 Host Number
                                                             24 bits                                                       8 bits
                                                                       --                                                            10
IP Address                    contd…


         bit # 0 1 2 3 4                                  31

Clas D      1110                  multicast group id


         bit # 0 1 2 3 4 5                                31

Clas E      11110            (reserved for future use)
              Fig .4              --                     11
Special IP Address


•All 0’s is reserved to refer to a network number




•All 1’s is reserved to refer to a broadcast
address




                           --                       12
Sub-netting

•   Class A and B has too many nodes


•   Network is divided to sub-network


•   Improve network performance


•   Indicate by subnet mask


                              --        13
No Sub-netting

• All hosts think that the other hosts are on the same network




     128.143.137.32/16          128.143.137.144/16         128.143.71.21/16        128.143.71.201/16
    subnetmask: 255.255.0.0   subnetmask: 255.255.0.0   subnetmask: 255.255.0.0   subnetmask: 255.255.0.0




                                                128.143.70.0/16




                   Fig .5
                                                   --                                              14
With Sub-netting
  •    Hosts with same extended network prefix belong to the
       same network



  128.143.137.32/24             128.143.137.144/24                128.143.71.21/24            128.143.71.201/24
subnetmask: 255.255.255.0     subnetmask: 255.255.255.0        subnetmask: 255.255.255.0   subnetmask: 255.255.255.0




                            128.143.137.0/24                                128.143.71.0/24
                                 Subnet                                         Subnet
                                                   128.143.0.0/16




                                                 Fig .6

                                                          --                                                  15
Summary

  In this class, you have learnt about

• At the network layer, a global identification system that

  uniquely identifies every host and router is necessary for

  delivery of packet from host –to-host

• An IP v4 address is 32 bit long and uniquely and

  universally define a host or router on the Internet



                               --                             16
Summary           contd……



• In classfull adressing,the portion of IP address that
  identifies the network is called netid



• In classfull adressing,the portion of IP address that
  identifies the host or router on the network is called
  the hostid


                            --                             17
Summary         contd..


• An IP address defines a device’s connection to a
  network

• There are five classes in IPv4 addresses

• Classes A, B and C differ in the no. of host allowed
  per network

• Class D is for multicasting and class E is reserved


                            --                           18
Quiz


1. IP version 4 is of ______ bits

     (a) 32

     (b) 48

     (c) 24

     (d) None of the above



                             --     19
Quiz

2. In IP addressing there are ___ classes


     (a) 5

     (b) 4

     (c) 6

     (d) None of the above



                             --             20
Frequently Asked Questions


1. Discuss the concepts of IP addressing


2. Describe the classes of IP version 4 addressing


3. Write a short note on default gate ways



                                                     21

More Related Content

What's hot (20)

IPv6 Fundamentals
IPv6 FundamentalsIPv6 Fundamentals
IPv6 Fundamentals
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Internet protocol (ip)
Internet protocol (ip)Internet protocol (ip)
Internet protocol (ip)
 
SNMP
SNMPSNMP
SNMP
 
C I D R
C I D RC I D R
C I D R
 
difference between hub, bridge, switch and router
difference between hub, bridge, switch and routerdifference between hub, bridge, switch and router
difference between hub, bridge, switch and router
 
Subnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesSubnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examples
 
CCNA ppt
CCNA pptCCNA ppt
CCNA ppt
 
Network address translation
Network address translationNetwork address translation
Network address translation
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6
 
IPv4 to IPv6
IPv4 to IPv6IPv4 to IPv6
IPv4 to IPv6
 
Osi model
Osi modelOsi model
Osi model
 
network Addressing
network Addressingnetwork Addressing
network Addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Ip address
Ip addressIp address
Ip address
 
Subnet calculation Tutorial
Subnet calculation TutorialSubnet calculation Tutorial
Subnet calculation Tutorial
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 

Viewers also liked

Introduction to router
Introduction to routerIntroduction to router
Introduction to routerFarhan Galib
 
Routers.ppt
Routers.pptRouters.ppt
Routers.pptkirbadh
 
Types of ip address classes
Types of ip address classesTypes of ip address classes
Types of ip address classesgreatbury
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configurationyasir1122
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) pptDulith Kasun
 

Viewers also liked (8)

Introduction to router
Introduction to routerIntroduction to router
Introduction to router
 
IP addressing
IP addressingIP addressing
IP addressing
 
Routers.ppt
Routers.pptRouters.ppt
Routers.ppt
 
Types of ip address classes
Types of ip address classesTypes of ip address classes
Types of ip address classes
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configuration
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 
Ip address
Ip addressIp address
Ip address
 

Similar to Ip address concepts

Similar to Ip address concepts (20)

Internet protocol
Internet protocolInternet protocol
Internet protocol
 
Tcpip
TcpipTcpip
Tcpip
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
Ip address
Ip address Ip address
Ip address
 
ipv4
ipv4ipv4
ipv4
 
How IP address works
How IP address worksHow IP address works
How IP address works
 
Ramakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressingRamakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressing
 
ITFT - IP adressing
 ITFT - IP adressing ITFT - IP adressing
ITFT - IP adressing
 
IP addressing by Mamun Sir
IP addressing by Mamun SirIP addressing by Mamun Sir
IP addressing by Mamun Sir
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentation
 
IP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.pptIP and CIDR ipv6 addressing.ppt
IP and CIDR ipv6 addressing.ppt
 
module03-ipaddr.ppt
module03-ipaddr.pptmodule03-ipaddr.ppt
module03-ipaddr.ppt
 
Subnetting and routing
Subnetting and routingSubnetting and routing
Subnetting and routing
 
network-addressing.pptx
network-addressing.pptxnetwork-addressing.pptx
network-addressing.pptx
 
Lesson1: Introduction To Networking Concepts
Lesson1: Introduction To Networking ConceptsLesson1: Introduction To Networking Concepts
Lesson1: Introduction To Networking Concepts
 
ip versions.pdf
ip versions.pdfip versions.pdf
ip versions.pdf
 
IP VERSIONS.pdf
IP VERSIONS.pdfIP VERSIONS.pdf
IP VERSIONS.pdf
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
Ip address and subnet masking final
Ip address and subnet masking finalIp address and subnet masking final
Ip address and subnet masking final
 
IP Address
IP AddressIP Address
IP Address
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Ip address concepts

  • 1. Sub Topic : IP Addressing Concepts Teaching Aids : Diagrams, Animations -- 1
  • 2. Recap In the previous class, you have learnt about • Leased line, DSL and Cable MODEM -- 2
  • 3. Objectives On completion of this period, you will be able to know about • What is an IP Address? • What is network prefix and host number? • What is Internet address? • What is sub-netting and no sub-netting? -- 3
  • 4. What is an IP Address? • Internet identifier including information about how to reach a network location (via the Internet routing system) • IPv4: 32-bit number. Written in Dotted Decimal Notation 205.150.58.7. – 4 billion different host addresses • IPv6: 128-bit number. Written in Hex Decimal Notation 2001:0503:0C27:0000:0000:0000:0000:0000 – 16 billion network addresses -- 4
  • 5. IP Addresses 32 bits version header Type of Service/TOS Total Length (in bytes) (4 bits) length (8 bits) (16 bits) flags Identification (16 bits) Fragment Offset (13 bits) (3 bits) TTL Time-to-Live Protocol Header Checksum (16 bits) (8 bits) (8 bits) Source IP address (32 bits) Destination IP address (32 bits) Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Fig .1 -- 5
  • 6. Network Prefix and Host Number •The network prefix identifies a network and the host number identifies a specific host (actually, interface on the network) network prefix host number •How do we know how long the network prefix is? –Before 1993: The network prefix is implicitly defined (see class-based addressing) –After 1993: The network prefix is indicated by a net mask -- 6
  • 7. Dotted Decimal Notation • IP addresses are written in a so-called dotted decimal notation • Each byte is identified by a decimal number in the range [0..255]: 10000000 10001111 10001001 10010000 1st Byte 2nd Byte 3rd Byte 4th Byte = 128 = 143 = 137 = 144 Fig.2 128.143.137.144 -- 7
  • 8. IP Address • Every interface have a unique Internet address (IP address) • Consist of 2 parts – network id and host id • 32-bit address • 5 Classes –A – 0.0.0.0 to 127.255.255.255 (224 nodes) –B – 128.0.0.0 to 191.255.255.255 (216 nodes) –C – 192.0.0.0 to 223.255.255.255 (28 nodes) –D – 224.0.0.0 to 239.255.255.255 –E – 240.0.0.0 to 247.255.255.255 -- 8
  • 9. IP Address contd…. • When Internet addresses were standardized (early 1980s), the Internet address space was divided up into classes • Class A: Network prefix is 8 bits long • Class B: Network prefix is 16 bits long • Class C: Network prefix is 24 bits long • Each IP address contained a key which identifies the class • Class A: IP address starts with “0” • Class B: IP address starts with “10” • Class C: IP address starts with “110” -- 9
  • 10. IP address contd… bit # 0 1 7 8 31 Class A 0 Network Prefix Host Number 8 bits 24 bits bit # 0 1 2 15 16 31 Class B 10 network id host Network Prefix Host Number 16 bits 16 bits bit # 0 1 2 3 23 24 31 Class C 110 network id host Network Prefix Host Number 24 bits 8 bits -- 10
  • 11. IP Address contd… bit # 0 1 2 3 4 31 Clas D 1110 multicast group id bit # 0 1 2 3 4 5 31 Clas E 11110 (reserved for future use) Fig .4 -- 11
  • 12. Special IP Address •All 0’s is reserved to refer to a network number •All 1’s is reserved to refer to a broadcast address -- 12
  • 13. Sub-netting • Class A and B has too many nodes • Network is divided to sub-network • Improve network performance • Indicate by subnet mask -- 13
  • 14. No Sub-netting • All hosts think that the other hosts are on the same network 128.143.137.32/16 128.143.137.144/16 128.143.71.21/16 128.143.71.201/16 subnetmask: 255.255.0.0 subnetmask: 255.255.0.0 subnetmask: 255.255.0.0 subnetmask: 255.255.0.0 128.143.70.0/16 Fig .5 -- 14
  • 15. With Sub-netting • Hosts with same extended network prefix belong to the same network 128.143.137.32/24 128.143.137.144/24 128.143.71.21/24 128.143.71.201/24 subnetmask: 255.255.255.0 subnetmask: 255.255.255.0 subnetmask: 255.255.255.0 subnetmask: 255.255.255.0 128.143.137.0/24 128.143.71.0/24 Subnet Subnet 128.143.0.0/16 Fig .6 -- 15
  • 16. Summary In this class, you have learnt about • At the network layer, a global identification system that uniquely identifies every host and router is necessary for delivery of packet from host –to-host • An IP v4 address is 32 bit long and uniquely and universally define a host or router on the Internet -- 16
  • 17. Summary contd…… • In classfull adressing,the portion of IP address that identifies the network is called netid • In classfull adressing,the portion of IP address that identifies the host or router on the network is called the hostid -- 17
  • 18. Summary contd.. • An IP address defines a device’s connection to a network • There are five classes in IPv4 addresses • Classes A, B and C differ in the no. of host allowed per network • Class D is for multicasting and class E is reserved -- 18
  • 19. Quiz 1. IP version 4 is of ______ bits (a) 32 (b) 48 (c) 24 (d) None of the above -- 19
  • 20. Quiz 2. In IP addressing there are ___ classes (a) 5 (b) 4 (c) 6 (d) None of the above -- 20
  • 21. Frequently Asked Questions 1. Discuss the concepts of IP addressing 2. Describe the classes of IP version 4 addressing 3. Write a short note on default gate ways 21