SlideShare a Scribd company logo
1 of 25
Download to read offline
IP Addressing

          by
Md. Abdullah Al Mamun
     Sr. Lecturer
Layer 3 - IP datagram
Version     IHL       Type of Service                     Total Length
             Identification                    Flags         Fragment Offset
  Time to Live            Protocol                      Header Checksum
                                Source Address
                              Destination Address
                          Options                                        Padding
                                        Data


     Version = 4                                     Protocol = 6 means data
     If no options, IHL = 5                           portion contains a TCP
     Source and Destination
                                                       segment. Protocol = 17
          are 32-bit IP addresses                      means UDP.
Purpose of an IP address
   Unique   Identification of
    – Source
      Sometimes used for security or policy-based
      filtering of data
    – Destination
      So the networks know where to send the data
   Network   Independent Format
    – IP over anything
Purpose of an IP Address
   identifiesa machine’s connection to a network
   physically moving a machine from one network
    to another requires changing the IP address
   assigned by an appropriate authority such as
    RIPE, ARIN, etc or Local Internet Registries
    (LIRs)
   TCP/IP uses unique 32-bit address
Basic Structure of an IP Address
  32 bit number (4 octet number):
   (e.g. 133.27.162.125)
  Decimal Representation:
        133     27       162      125
   Binary Representation:
     10000101 00011011 10100010 01111101

   Hexadecimal Representation:
        85      1B       A2        7D
Address Structure Revisited
   Hierarchical     Division in IP Address:
    – Network Part (Prefix)
       » describes which physical network
    – Host Part (Host Address)
       » describes which host on that network

         205   .   154   .   8                    1
       11001101 10011010 00001000         00000001
                   Network                   Host
    – Boundary can be anywhere
       » very often NOT at a multiple of 8 bits
Network Masks
   Define which bits are used to describe the
    Network Part and which for hosts
   Different Representations:
    – decimal dot notation: 255.255.224.0
    – binary: 11111111 11111111 11100000 00000000
    – hexadecimal: 0xFFFFE000
    – number of network bits: /19
   BinaryAND of 32 bit IP address with 32 bit
    netmask yields network part of address
Example Prefixes
 137.158.128.0/17 (netmask 255.255.128.0)
        1111 1111 1111 1111 1 000 0000 0000 0000
        1000 1001 1001 1110 1 000 0000 0000 0000

198.134.0.0/16        (netmask 255.255.0.0)
        1111 1111   1111 1111   0000 0000   0000 0000
        1100 0110   1000 0110   0000 0000   0000 0000

205.37.193.128/26 (netmask 255.255.255.192)
        1111 1111   1111 1111   1111 1111 11 00 0000
        1100 1101   0010 0101   1100 0001 10 00 0000
Special Addresses
   All   0’s in host part: Represents Network
    – e.g. 193.0.0.0/24
    – e.g. 138.37.128.0/17
   All   1’s in host part: Broadcast
    – e.g. 137.156.255.255 (137.156.0.0/16)
    – e.g. 134.132.100.255 (134.132.100.0/24)
    – e.g. 190.0.127.255 (190.0.0.0/17)
   127.0.0.0/8: Loopback address (127.0.0.1)
   0.0.0.0: Various special purposes
Allocating IP Addresses
   The subnet mask is used to define size of a
    network
   E.g a subnet mask of 255.255.255.0 or /24
    implies 32-24=8 host bits
    – 2^8 minus 2 = 254 possible hosts
   Similarly a subnet mask of 255.255.255.224 or
    /27 implies 32-27=5 hosts bits
    – 2^5 minus 2 = 30 possible hosts
Old-style classes of IP addresses
     Different classes used to represent different sizes of network
      (small, medium, large)
     Class A networks (large):
       – 8 bits network, 24 bits host (/8, 255.0.0.0)
       – First byte in range 0-127
     Class B networks (medium):
       – 16 bits network, 16 bits host (/16 ,255.255.0.0)
       – First byte in range 128-191
     Class C networks (small):
       – 24 bits network, 8 bits host (/24, 255.255.255.0)
       – First byte in range 192-223
IP Addresses
given notion of “network”, let’s re-examine IP addresses:
“class-full” addressing:

   class
                                                            1.0.0.0 to
     A     0 network                 host                   127.255.255.255

     B                                                      128.0.0.0 to
           10     network                   host            191.255.255.255
                                                            192.0.0.0 to
     C     110         network                     host     223.255.255.255
                                                            224.0.0.0 to
     D     1110         multicast address                   239.255.255.255

                           32 bits


                                                     Network Layer            #12
Old-style classes of IP addresses
   Just   look at the address to tell what class it is.
     – Class A: 0.0.0.0 to 127.255.255.255
        » binary 0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     – Class B: 128.0.0.0 to 191.255.255.255
        » binary 10xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     – Class C: 192.0.0.0 to 223.255.255.255
        » binary 110xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     – Class D: (multicast) 224.0.0.0 to 239.255.255.255
        » binary 1110xxxxxxxxxxxxxxxxxxxxxxxxxxxx
     – Class E: (reserved) 240.0.0.0 to 255.255.255.255
Implied netmasks of classful
addresses
  A  classful network has a “natural” or “implied”
    prefix length or netmask:
    – Class A: prefix length /8 (netmask 255.0.0.0)
    – Class B: prefix length /16 (netmask 255.255.0.0)
    – Class C: prefix length /24 (netmask 255.255.255.0)
   Old routing systems often used implied
    netmasks
   Modern routing systems always use explicit
    prefix lengths or netmasks
Classless addressing
   Forget  old Class A, Class B, Class C
    terminology and restrictions
   Internet routing and address management today
    is classless
   CIDR = Classless Inter-Domain Routing
    – routing does not assume that class A,B,C implies
      prefix length /8,/16,/24
   VLSM     = Variable-Length Subnet Masks
    – routing does not assume that all subnets are the
      same size
Classless Addressing
   IP address with the subnet mask defines the
    range of addresses in the block
    – E.g 10.1.1.32/28 (subnet mask 255.255.255.240)
      defines the range 10.1.1.32 to 10.1.1.47
    – 10.1.1.32 is the network address
    – 10.1.1.47 is the broadcast address
    – 10.1.1.33 ->46 assignable addresses
Classless addressing example
  A   large ISP gets a large block of addresses
    – e.g., a /16 prefix, or 65536 separate addresses
   Allocate   smaller blocks to customers
    – e.g., a /22 prefix (1024 addresses) to one customer,
      and a /28 prefix (16 addresses) to another customer
   An organisation that gets a /22 prefix from their
    ISP divides it into smaller blocks
    – e.g. a /26 prefix (64 addresses) for one department,
      and a /27 prefix (32 addresses) for another
      department
Classless addressing exercise
   Consider the address block 133.27.162.0/23
   Allocate 8 separate /29 blocks, and one /28
    block
   What are the IP addresses of each block?
    – in prefix length notation
    – netmasks in decimal
    – IP address ranges
   What is the largest block that is still available?
   What other blocks are still available?
IP addressing: the last word...

    Q: How does an ISP get block of addresses?
    A: ICANN: Internet Corporation for Assigned
      Names and Numbers
       – allocates addresses
       – manages DNS
       – assigns domain names, resolves disputes




                                    Network Layer   #19
IP Addressing: scenario
                                                  223.1.1.1
   IP address: 32-bit identifier
    for host, router interface                                             223.1.2.1
                                                  223.1.1.2
   interface: connection                                 223.1.1.4   223.1.2.9

    between host, router and                                               223.1.2.2
                                                 223.1.1.3    223.1.3.27
    physical link
     – router’s typically have
       multiple interfaces
     – host may have multiple                     223.1.3.1                223.1.3.2
       interfaces
     – IP addresses associated with
       interface, not host, or router
                                        223.1.1.1 = 11011111 00000001 00000001 00000001

                                                      223         1          1          1


                                                        Network Layer                  #20
IP Addressing : scenario
                                       223.1.1.1
   IP address:
     – network part                                             223.1.2.1
                                       223.1.1.2
         » high order bits                     223.1.1.4   223.1.2.9
     – host part
                                                                 223.1.2.2
         » low order bits             223.1.1.3    223.1.3.27

   What’s a network ? (from IP
                                                            LAN
    address perspective)
                                       223.1.3.1                 223.1.3.2
     – device interfaces with same
       network part of IP address
     – can physically reach each
       other without intervening     network consisting of 3 IP networks
       router
                                     (for IP addresses starting with 223,
                                     first 24 bits are network address)

                                             Network Layer                   #21
Getting a datagram from source to dest.
                                                routing table in A
IP datagram:                              Dest. Net. next router Nhops

           source
                                           223.1.1                         1
  misc                dest
 fields   IP addr   IP addr
                               data        223.1.2      223.1.1.4          2
                                           223.1.3      223.1.1.4          2

  datagram remains unchanged, as     A    223.1.1.1
   it travels source to destination
                                                                    223.1.2.1
  addr fields of interest here            223.1.1.2
                                                   223.1.1.4   223.1.2.9
      mainly dest. IP addr
                                      B
                                                                     223.1.2.2
                                          223.1.1.3    223.1.3.27                E

                                           223.1.3.1                223.1.3.2




                                              Network Layer                     #22
Getting a datagram from source to dest.
misc                                              Dest. Net. next router Nhops
       223.1.1.1 223.1.1.3 data
fields                                             223.1.1                         1
                                                   223.1.2      223.1.1.4          2
Starting at A, given IP datagram
                                                   223.1.3      223.1.1.4          2
   addressed to B:
 look up net. address of B                   A    223.1.1.1
 find B is on same net. as A
                                                                            223.1.2.1
 link layer will send datagram directly to        223.1.1.2
   B inside link-layer frame                               223.1.1.4   223.1.2.9
     B and A are directly connected
                                              B
                                                                             223.1.2.2
                                                  223.1.1.3    223.1.3.27                E

                                                   223.1.3.1                223.1.3.2




                                                      Network Layer                     #23
Getting a datagram from source to dest.
misc                                             Dest. Net. next router Nhops
       223.1.1.1 223.1.2.2       data
fields                                            223.1.1                         1
                                                  223.1.2      223.1.1.4          2
Starting at A, dest. E:
                                                  223.1.3      223.1.1.4          2
 look up network address of E
 E on different network                     A    223.1.1.1
       A, E not directly attached
                                                                           223.1.2.1
   routing table: next hop router to E is        223.1.1.2
    223.1.1.4                                             223.1.1.4   223.1.2.9
   link layer sends datagram to router      B
                                                                            223.1.2.2
    223.1.1.4 inside link-layer frame            223.1.1.3    223.1.3.27                E
   datagram arrives at 223.1.1.4
                                                  223.1.3.1                223.1.3.2
   continued…..


                                                     Network Layer                     #24
Getting a datagram from source to dest.
                                            Dest.   next
 misc                                      network router Nhops interface
        223.1.1.1 223.1.2.2    data
 fields
                                           223.1.1          -       1      223.1.1.4
Arriving at 223.1.4, destined for          223.1.2          -       1      223.1.2.9
                                           223.1.3          -       1      223.1.3.27
  223.1.2.2
 look up network address of E             A    223.1.1.1
 E on same network as router’s
                                                                         223.1.2.1
  interface 223.1.2.9                           223.1.1.2
     router, E directly attached                       223.1.1.4   223.1.2.9
                                           B
 link layer sends datagram to 223.1.2.2                                  223.1.2.2
  inside link-layer frame via interface        223.1.1.3    223.1.3.27                 E
  223.1.2.9                                     223.1.3.1                223.1.3.2
 datagram arrives at 223.1.2.2!!!
  (hooray!)

                                                   Network Layer                     #25

More Related Content

What's hot

Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basicsMahmmoud Mahdi
 
Lesson 3: IPv6 Fundamentals
Lesson 3: IPv6 FundamentalsLesson 3: IPv6 Fundamentals
Lesson 3: IPv6 FundamentalsMahmmoud Mahdi
 
IP Addressing (Subnetting, VLSM, Supernetting)
IP Addressing (Subnetting, VLSM, Supernetting)IP Addressing (Subnetting, VLSM, Supernetting)
IP Addressing (Subnetting, VLSM, Supernetting)cuetcse
 
Ip -subnetting
Ip  -subnettingIp  -subnetting
Ip -subnettingnithinj54
 
CCNA 1 Routing and Switching v5.0 Chapter 9
CCNA 1 Routing and Switching v5.0 Chapter 9CCNA 1 Routing and Switching v5.0 Chapter 9
CCNA 1 Routing and Switching v5.0 Chapter 9Nil Menon
 
Subnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesSubnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesKrishna Mohan
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
CCNA Exam 640-802 Version 9.3
CCNA Exam 640-802 Version 9.3CCNA Exam 640-802 Version 9.3
CCNA Exam 640-802 Version 9.3Ravi Yasas
 
Wipro telecom training i pv4 concepts
Wipro telecom training   i pv4 conceptsWipro telecom training   i pv4 concepts
Wipro telecom training i pv4 conceptsJAIGANESH SEKAR
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPTPijush Kanti Das
 
Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)welcometofacebook
 
IP Addressing - chapter 7 of Free CCNA1 Instructor Training
IP Addressing - chapter 7 of Free CCNA1 Instructor TrainingIP Addressing - chapter 7 of Free CCNA1 Instructor Training
IP Addressing - chapter 7 of Free CCNA1 Instructor TrainingAndrew Smith
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingBisrat Girma
 
Ip address concepts
Ip address conceptsIp address concepts
Ip address conceptsmyrajendra
 

What's hot (20)

Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
Lesson 3: IPv6 Fundamentals
Lesson 3: IPv6 FundamentalsLesson 3: IPv6 Fundamentals
Lesson 3: IPv6 Fundamentals
 
IP Addressing (Subnetting, VLSM, Supernetting)
IP Addressing (Subnetting, VLSM, Supernetting)IP Addressing (Subnetting, VLSM, Supernetting)
IP Addressing (Subnetting, VLSM, Supernetting)
 
Ip -subnetting
Ip  -subnettingIp  -subnetting
Ip -subnetting
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
CCNA 1 Routing and Switching v5.0 Chapter 9
CCNA 1 Routing and Switching v5.0 Chapter 9CCNA 1 Routing and Switching v5.0 Chapter 9
CCNA 1 Routing and Switching v5.0 Chapter 9
 
Subnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesSubnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examples
 
Subnetting
SubnettingSubnetting
Subnetting
 
iP Address ,
 iP Address , iP Address ,
iP Address ,
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
CCNA Exam 640-802 Version 9.3
CCNA Exam 640-802 Version 9.3CCNA Exam 640-802 Version 9.3
CCNA Exam 640-802 Version 9.3
 
Wipro telecom training i pv4 concepts
Wipro telecom training   i pv4 conceptsWipro telecom training   i pv4 concepts
Wipro telecom training i pv4 concepts
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)
 
IP Addressing - chapter 7 of Free CCNA1 Instructor Training
IP Addressing - chapter 7 of Free CCNA1 Instructor TrainingIP Addressing - chapter 7 of Free CCNA1 Instructor Training
IP Addressing - chapter 7 of Free CCNA1 Instructor Training
 
Chapter6
Chapter6Chapter6
Chapter6
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP Addressing
 
Ip address concepts
Ip address conceptsIp address concepts
Ip address concepts
 
Subnetting
SubnettingSubnetting
Subnetting
 

Viewers also liked

Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework HelpAssignmentpedia
 
GOOGLE CAR(autonomous car)
GOOGLE CAR(autonomous  car)GOOGLE CAR(autonomous  car)
GOOGLE CAR(autonomous car)SACHIN KS
 
Ch 19 Network-layer protocols Section 1
Ch 19  Network-layer protocols Section 1Ch 19  Network-layer protocols Section 1
Ch 19 Network-layer protocols Section 1Hossam El-Deen Osama
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layertmavroidis
 
Multicast Routing Protocols
Multicast Routing ProtocolsMulticast Routing Protocols
Multicast Routing ProtocolsRam Dutt Shukla
 
Gen rx power point
Gen rx power pointGen rx power point
Gen rx power pointprogroup
 
Herbario comenius
Herbario comeniusHerbario comenius
Herbario comeniusbegotor
 
Social Prize - Awesome Benefits of Social Sweepstakes
Social Prize  - Awesome Benefits of Social SweepstakesSocial Prize  - Awesome Benefits of Social Sweepstakes
Social Prize - Awesome Benefits of Social SweepstakesYomar Lopez
 
Fatigue - Are You Too Tired to Perform Safely
Fatigue - Are You Too Tired to Perform SafelyFatigue - Are You Too Tired to Perform Safely
Fatigue - Are You Too Tired to Perform SafelyMike Harnett
 
Hail and storms middle school version
Hail and storms middle school versionHail and storms middle school version
Hail and storms middle school versionKathy Page-Applebee
 
Новости недвижимости Майами - Февраль 2016
Новости недвижимости Майами - Февраль 2016Новости недвижимости Майами - Февраль 2016
Новости недвижимости Майами - Февраль 2016The Reznik Group
 
Customer experience in 2014 - Take 2
Customer experience in 2014 - Take 2Customer experience in 2014 - Take 2
Customer experience in 2014 - Take 2Centrecom
 
2ª semanab
2ª semanab2ª semanab
2ª semanabblog2012
 
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp013 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01Cikgu Shaiful Kisas
 
Enterprise io t investment presentation
Enterprise io t investment presentationEnterprise io t investment presentation
Enterprise io t investment presentationRick Zullo
 

Viewers also liked (20)

Ch08
Ch08Ch08
Ch08
 
Chapter4 Network
Chapter4 NetworkChapter4 Network
Chapter4 Network
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
 
GOOGLE CAR(autonomous car)
GOOGLE CAR(autonomous  car)GOOGLE CAR(autonomous  car)
GOOGLE CAR(autonomous car)
 
Ch 19 Network-layer protocols Section 1
Ch 19  Network-layer protocols Section 1Ch 19  Network-layer protocols Section 1
Ch 19 Network-layer protocols Section 1
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
 
Multicast Routing Protocols
Multicast Routing ProtocolsMulticast Routing Protocols
Multicast Routing Protocols
 
Chapter4 l4
Chapter4 l4Chapter4 l4
Chapter4 l4
 
Gen rx power point
Gen rx power pointGen rx power point
Gen rx power point
 
Herbario comenius
Herbario comeniusHerbario comenius
Herbario comenius
 
Social Prize - Awesome Benefits of Social Sweepstakes
Social Prize  - Awesome Benefits of Social SweepstakesSocial Prize  - Awesome Benefits of Social Sweepstakes
Social Prize - Awesome Benefits of Social Sweepstakes
 
Fatigue - Are You Too Tired to Perform Safely
Fatigue - Are You Too Tired to Perform SafelyFatigue - Are You Too Tired to Perform Safely
Fatigue - Are You Too Tired to Perform Safely
 
Hail and storms middle school version
Hail and storms middle school versionHail and storms middle school version
Hail and storms middle school version
 
Deneme1 a
Deneme1 aDeneme1 a
Deneme1 a
 
Новости недвижимости Майами - Февраль 2016
Новости недвижимости Майами - Февраль 2016Новости недвижимости Майами - Февраль 2016
Новости недвижимости Майами - Февраль 2016
 
Iv cf
Iv cfIv cf
Iv cf
 
Customer experience in 2014 - Take 2
Customer experience in 2014 - Take 2Customer experience in 2014 - Take 2
Customer experience in 2014 - Take 2
 
2ª semanab
2ª semanab2ª semanab
2ª semanab
 
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp013 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01
3 1factorbygroupingandfactoringintoquadratics-120225222519-phpapp01
 
Enterprise io t investment presentation
Enterprise io t investment presentationEnterprise io t investment presentation
Enterprise io t investment presentation
 

Similar to IP addressing by Mamun Sir

Computer Networking: A Top-Down Approach
Computer Networking: A Top-Down Approach Computer Networking: A Top-Down Approach
Computer Networking: A Top-Down Approach PolRobinson
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from JuniperNam Nguyen
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basicstmavroidis
 
CCNA ppt Day 3
CCNA ppt Day 3CCNA ppt Day 3
CCNA ppt Day 3VISHNU N
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnettingShashank Asthana
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptanwarkade1
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptEsubesisay
 

Similar to IP addressing by Mamun Sir (20)

How IP address works
How IP address worksHow IP address works
How IP address works
 
Computer Networking: A Top-Down Approach
Computer Networking: A Top-Down Approach Computer Networking: A Top-Down Approach
Computer Networking: A Top-Down Approach
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from Juniper
 
IPAddressing .pptx
IPAddressing .pptxIPAddressing .pptx
IPAddressing .pptx
 
IP Addressing.ppt
IP Addressing.pptIP Addressing.ppt
IP Addressing.ppt
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
Ip addressing upload
Ip addressing uploadIp addressing upload
Ip addressing upload
 
CCNA ppt Day 3
CCNA ppt Day 3CCNA ppt Day 3
CCNA ppt Day 3
 
TCP IP Addressing
TCP IP AddressingTCP IP Addressing
TCP IP Addressing
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnetting
 
IP Address
IP AddressIP Address
IP Address
 
Network Layer V.ppt
Network Layer V.pptNetwork Layer V.ppt
Network Layer V.ppt
 
Day-3 PowerPoint
Day-3 PowerPointDay-3 PowerPoint
Day-3 PowerPoint
 
Lecture 06
Lecture 06Lecture 06
Lecture 06
 
gofortution
gofortutiongofortution
gofortution
 
IP Addressing
IP AddressingIP Addressing
IP Addressing
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.ppt
 
Chapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.pptChapter 5 Network Configuration Basics.ppt
Chapter 5 Network Configuration Basics.ppt
 
Network Layer
Network LayerNetwork Layer
Network Layer
 

Recently uploaded

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

IP addressing by Mamun Sir

  • 1. IP Addressing by Md. Abdullah Al Mamun Sr. Lecturer
  • 2. Layer 3 - IP datagram Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source Address Destination Address Options Padding Data  Version = 4  Protocol = 6 means data  If no options, IHL = 5 portion contains a TCP  Source and Destination segment. Protocol = 17 are 32-bit IP addresses means UDP.
  • 3. Purpose of an IP address  Unique Identification of – Source Sometimes used for security or policy-based filtering of data – Destination So the networks know where to send the data  Network Independent Format – IP over anything
  • 4. Purpose of an IP Address  identifiesa machine’s connection to a network  physically moving a machine from one network to another requires changing the IP address  assigned by an appropriate authority such as RIPE, ARIN, etc or Local Internet Registries (LIRs)  TCP/IP uses unique 32-bit address
  • 5. Basic Structure of an IP Address 32 bit number (4 octet number): (e.g. 133.27.162.125) Decimal Representation: 133 27 162 125 Binary Representation: 10000101 00011011 10100010 01111101 Hexadecimal Representation: 85 1B A2 7D
  • 6. Address Structure Revisited  Hierarchical Division in IP Address: – Network Part (Prefix) » describes which physical network – Host Part (Host Address) » describes which host on that network 205 . 154 . 8 1 11001101 10011010 00001000 00000001 Network Host – Boundary can be anywhere » very often NOT at a multiple of 8 bits
  • 7. Network Masks  Define which bits are used to describe the Network Part and which for hosts  Different Representations: – decimal dot notation: 255.255.224.0 – binary: 11111111 11111111 11100000 00000000 – hexadecimal: 0xFFFFE000 – number of network bits: /19  BinaryAND of 32 bit IP address with 32 bit netmask yields network part of address
  • 8. Example Prefixes  137.158.128.0/17 (netmask 255.255.128.0) 1111 1111 1111 1111 1 000 0000 0000 0000 1000 1001 1001 1110 1 000 0000 0000 0000 198.134.0.0/16 (netmask 255.255.0.0) 1111 1111 1111 1111 0000 0000 0000 0000 1100 0110 1000 0110 0000 0000 0000 0000 205.37.193.128/26 (netmask 255.255.255.192) 1111 1111 1111 1111 1111 1111 11 00 0000 1100 1101 0010 0101 1100 0001 10 00 0000
  • 9. Special Addresses  All 0’s in host part: Represents Network – e.g. 193.0.0.0/24 – e.g. 138.37.128.0/17  All 1’s in host part: Broadcast – e.g. 137.156.255.255 (137.156.0.0/16) – e.g. 134.132.100.255 (134.132.100.0/24) – e.g. 190.0.127.255 (190.0.0.0/17)  127.0.0.0/8: Loopback address (127.0.0.1)  0.0.0.0: Various special purposes
  • 10. Allocating IP Addresses  The subnet mask is used to define size of a network  E.g a subnet mask of 255.255.255.0 or /24 implies 32-24=8 host bits – 2^8 minus 2 = 254 possible hosts  Similarly a subnet mask of 255.255.255.224 or /27 implies 32-27=5 hosts bits – 2^5 minus 2 = 30 possible hosts
  • 11. Old-style classes of IP addresses  Different classes used to represent different sizes of network (small, medium, large)  Class A networks (large): – 8 bits network, 24 bits host (/8, 255.0.0.0) – First byte in range 0-127  Class B networks (medium): – 16 bits network, 16 bits host (/16 ,255.255.0.0) – First byte in range 128-191  Class C networks (small): – 24 bits network, 8 bits host (/24, 255.255.255.0) – First byte in range 192-223
  • 12. IP Addresses given notion of “network”, let’s re-examine IP addresses: “class-full” addressing: class 1.0.0.0 to A 0 network host 127.255.255.255 B 128.0.0.0 to 10 network host 191.255.255.255 192.0.0.0 to C 110 network host 223.255.255.255 224.0.0.0 to D 1110 multicast address 239.255.255.255 32 bits Network Layer #12
  • 13. Old-style classes of IP addresses  Just look at the address to tell what class it is. – Class A: 0.0.0.0 to 127.255.255.255 » binary 0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class B: 128.0.0.0 to 191.255.255.255 » binary 10xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class C: 192.0.0.0 to 223.255.255.255 » binary 110xxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class D: (multicast) 224.0.0.0 to 239.255.255.255 » binary 1110xxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class E: (reserved) 240.0.0.0 to 255.255.255.255
  • 14. Implied netmasks of classful addresses A classful network has a “natural” or “implied” prefix length or netmask: – Class A: prefix length /8 (netmask 255.0.0.0) – Class B: prefix length /16 (netmask 255.255.0.0) – Class C: prefix length /24 (netmask 255.255.255.0)  Old routing systems often used implied netmasks  Modern routing systems always use explicit prefix lengths or netmasks
  • 15. Classless addressing  Forget old Class A, Class B, Class C terminology and restrictions  Internet routing and address management today is classless  CIDR = Classless Inter-Domain Routing – routing does not assume that class A,B,C implies prefix length /8,/16,/24  VLSM = Variable-Length Subnet Masks – routing does not assume that all subnets are the same size
  • 16. Classless Addressing  IP address with the subnet mask defines the range of addresses in the block – E.g 10.1.1.32/28 (subnet mask 255.255.255.240) defines the range 10.1.1.32 to 10.1.1.47 – 10.1.1.32 is the network address – 10.1.1.47 is the broadcast address – 10.1.1.33 ->46 assignable addresses
  • 17. Classless addressing example A large ISP gets a large block of addresses – e.g., a /16 prefix, or 65536 separate addresses  Allocate smaller blocks to customers – e.g., a /22 prefix (1024 addresses) to one customer, and a /28 prefix (16 addresses) to another customer  An organisation that gets a /22 prefix from their ISP divides it into smaller blocks – e.g. a /26 prefix (64 addresses) for one department, and a /27 prefix (32 addresses) for another department
  • 18. Classless addressing exercise  Consider the address block 133.27.162.0/23  Allocate 8 separate /29 blocks, and one /28 block  What are the IP addresses of each block? – in prefix length notation – netmasks in decimal – IP address ranges  What is the largest block that is still available?  What other blocks are still available?
  • 19. IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers – allocates addresses – manages DNS – assigns domain names, resolves disputes Network Layer #19
  • 20. IP Addressing: scenario 223.1.1.1  IP address: 32-bit identifier for host, router interface 223.1.2.1 223.1.1.2  interface: connection 223.1.1.4 223.1.2.9 between host, router and 223.1.2.2 223.1.1.3 223.1.3.27 physical link – router’s typically have multiple interfaces – host may have multiple 223.1.3.1 223.1.3.2 interfaces – IP addresses associated with interface, not host, or router 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 Network Layer #20
  • 21. IP Addressing : scenario 223.1.1.1  IP address: – network part 223.1.2.1 223.1.1.2 » high order bits 223.1.1.4 223.1.2.9 – host part 223.1.2.2 » low order bits 223.1.1.3 223.1.3.27  What’s a network ? (from IP LAN address perspective) 223.1.3.1 223.1.3.2 – device interfaces with same network part of IP address – can physically reach each other without intervening network consisting of 3 IP networks router (for IP addresses starting with 223, first 24 bits are network address) Network Layer #21
  • 22. Getting a datagram from source to dest. routing table in A IP datagram: Dest. Net. next router Nhops source 223.1.1 1 misc dest fields IP addr IP addr data 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2  datagram remains unchanged, as A 223.1.1.1 it travels source to destination 223.1.2.1  addr fields of interest here 223.1.1.2 223.1.1.4 223.1.2.9  mainly dest. IP addr B 223.1.2.2 223.1.1.3 223.1.3.27 E 223.1.3.1 223.1.3.2 Network Layer #22
  • 23. Getting a datagram from source to dest. misc Dest. Net. next router Nhops 223.1.1.1 223.1.1.3 data fields 223.1.1 1 223.1.2 223.1.1.4 2 Starting at A, given IP datagram 223.1.3 223.1.1.4 2 addressed to B:  look up net. address of B A 223.1.1.1  find B is on same net. as A 223.1.2.1  link layer will send datagram directly to 223.1.1.2 B inside link-layer frame 223.1.1.4 223.1.2.9  B and A are directly connected B 223.1.2.2 223.1.1.3 223.1.3.27 E 223.1.3.1 223.1.3.2 Network Layer #23
  • 24. Getting a datagram from source to dest. misc Dest. Net. next router Nhops 223.1.1.1 223.1.2.2 data fields 223.1.1 1 223.1.2 223.1.1.4 2 Starting at A, dest. E: 223.1.3 223.1.1.4 2  look up network address of E  E on different network A 223.1.1.1  A, E not directly attached 223.1.2.1  routing table: next hop router to E is 223.1.1.2 223.1.1.4 223.1.1.4 223.1.2.9  link layer sends datagram to router B 223.1.2.2 223.1.1.4 inside link-layer frame 223.1.1.3 223.1.3.27 E  datagram arrives at 223.1.1.4 223.1.3.1 223.1.3.2  continued….. Network Layer #24
  • 25. Getting a datagram from source to dest. Dest. next misc network router Nhops interface 223.1.1.1 223.1.2.2 data fields 223.1.1 - 1 223.1.1.4 Arriving at 223.1.4, destined for 223.1.2 - 1 223.1.2.9 223.1.3 - 1 223.1.3.27 223.1.2.2  look up network address of E A 223.1.1.1  E on same network as router’s 223.1.2.1 interface 223.1.2.9 223.1.1.2  router, E directly attached 223.1.1.4 223.1.2.9 B  link layer sends datagram to 223.1.2.2 223.1.2.2 inside link-layer frame via interface 223.1.1.3 223.1.3.27 E 223.1.2.9 223.1.3.1 223.1.3.2  datagram arrives at 223.1.2.2!!! (hooray!) Network Layer #25