IP Addressing

IPv4, IPv6,CIDR notation,Subnet, DHCP, APIPA

IPv4

  • Internet Protocol Version 4 (IPv4) Addressing

    ex) 172.248.8.5
    
  • Dotted-decimal notation
  • 32-bits in length
    • IPv4 consists of 4 octets(0~255).
    • Each octet is divided by dot.

IPv4 traits

subnet mask, CIDR notation, Class a, Class b, Class c , public IP, private IP ,special IP
  • Subnet mask

    • It defines network portion(1) and host portion(0).
    • ‘1’ is filled from the left side in order.

  • CIDR notation

    • It is a compact representation of an IP address and subnet mask.
    • CIDR stands for Classless Inter-Domain Routing.
    • It represents the number of ‘1’s in binary notation.

image

  • Class A, B, and C

    • IPv4 is divided into two part. Network and Host. Big companies like Microsoft owns Class A IP. From my understanding, They would have lots of resources to serve people, meaning that hosts who hold info should be a lot.

    img

    image

  • Public IP

    • Routable
    • It must be purchased before use through your Internet Service Provider (ISP).
    • image
  • Private IP

  • Non-routable
  • Network Address Translation (NAT) will enable computers with private IP connect to the internet by matching private IPs to one public IP.

image

  • special IP
    • Loop back address
      • 127.x.x.x range
      • ex)127.0.0.1
    • Automatic Private IP Addresses (APIPA)
      • static IP address and cannot reach a DHCP server
      • Range of 169.254.x.x
      • If you get IP range of this, it means that your DHCP is not working. (Not possible to connect to internet)

Data flow - IPv4

  • Unicast : single sender, one recipient

  • Multicast : single sender, multiple recipients

  • Broadcast : single sender, recipients

Assigning IP Address

  • Type
    • Static
    • Dynamic
  • Components of IP Address
    • IP Address
    • Subnet Mask
    • Default Gateway
    • Server addresses
      • DNS or WINS
  • DHCP

    • Dynamic Host Control Protocol (DHCP)

    • Provides clients with IP, Subnet mask, Default gateway, DNS server, WINS server, Other variables needed for VoIP

  • APIPA
    • Automatic Private IP Address (APIPA)
    • Devices with no static IP, and no DHCP access
    • Allows a network device to self-assign an IP address from the 169.254.0.0/16 network
    • Non-routable

subnetting

  • Borrowing bits from the host portion and adding them to the network portion. It enables original pool of network to be separated, which is secure and better use of IP Address.

  • More efficient use of IP addresses than classful default.

    image

  • classful subnet

    • Default, Only one network
  • classless subnet

    • More than 1 network. Total number of available IPs decreases as the first and last IP in each subnet are for Network ID and Broadcast respectively.
    • Borrow host’s section in subnet mask.
  • The way to calculate the number of subnets and IPs according to CIDR

image

IPv6

  • IPv4 is running out, due to lots of devices using WIFI.
  • Enough IPv6 addresses for every person on the planet (5 x 10^28)
  • IPv6 does not need DHCP to assign its IP. It uses auto configuration to discover the current network and selects its own host ID based on its MAC using the EUI64 process

Address type

  • Globally routable unicast addresses s
    • Begins with 2000 to 3999
  • Link-local address
  • Begins with FE80
  • Multicast addresses
  • Begins with FF

Data flow

  • Unicast and Multicast are similar to IPv4.

  • Anycast

    • one to the nearest ones

      image


© 2018. All rights reserved.

Powered by Hydejack v8.5.2