Internet Protocol (IP)

IP Datagram Format

Pasted image 20241214150611.png

IP Fragmentation and Reassembly

Pasted image 20241214150751.png

IPv4 Addressing

IP address: 32-bit identifier for host, router interface
Interface: Connection between host/router and physical link

How are interfaces connected?

Link Layer
Pasted image 20241214151435.png

Subnets

Device interfaces with same subnet part of IP address

High order bits of IP address is subnet part, low order bits are host part

CIDR: Classless InterDomain Routing

DHCP: Dynamic Host Configuration Protocol

How does a host get IP address

Dynamically get address from a server

Allow host to dynamically obtain its Ip address from network server when it joins network

Steps
  1. Host broadcasts DHCP discover msg (optional)
  2. DHCP server responds with DHCP offer msg (optional)
  3. Host requests IP address: DHCP request
  4. DHCP server sends address: DHCP ack
    Pasted image 20241214152705.png
    DHCP can return more than just allocated IP address on subnet:

Hierarchical Addressing: route aggregation

Allows for efficient advertisement of routing information
Pasted image 20241214153148.png

IPv6

Motivation

32-bit address space soon to be completely allocated
Header format helps speed processing/forwarding
Header changes to faciliate QoS

Format

Differences to IPv4

Transition from IPv4 to IPv6

Pasted image 20241214160223.png
Tunneling: IPv6 datagram carried as payload in IPv4 datagram among IPv4 routers
Pasted image 20241214160252.png