Introduction To Ipv4 & Ipv6
Introduction To Ipv4 & Ipv6
Introduction To Ipv4 & Ipv6
1
OSI Stack & TCP/IP
Architecture
Principles of the Internet
Edge vs. core (end-systems vs. routers)
Dumb network
Intelligence at the end-systems
Layered System
Network of collaborating networks
The network edge
end systems (hosts):
run application programs
e.g., WWW, email
at “edge of network”
client/server model:
client host requests, receives
service from server
e.g., WWW client
(browser)/server; email
client/server
peer-peer model:
host interaction symmetric
e.g.: teleconferencing
Network edge: connection-
oriented service
Goal: data transfer between end TCP service [RFC 793]
sys. reliable, in-order byte-stream data
handshaking: setup (prepare for) transfer
data transfer ahead of time loss: acknowledgements and
Hello, hello back human protocol retransmissions
set up “state” in two flow control:
communicating hosts sender won’t overwhelm receiver
TCP - Transmission Control congestion control:
Protocol senders “slow down sending rate”
Internet’s connection-oriented when network congested
service
Network edge: connectionless
service
Goal: data transfer between end systems
IP Network layer
4 Transport
3 Network
Lower Layers
Network oriented
Data Link
2 “Hop-by-hop” layers
1 Physical
OSI Model and the Internet
Internet protocols are not directly based on
the OSI model
However, we do often use the OSI numbering
system. You should at least remember these:
Layer 7: Application
Layer 4: Transport (e.g. TCP, UDP)
Layer 3: Network (IP)
Layer 2: Data link
Layer 1: Physical
Layer Interaction:
TCP/IP Model
End
to Application Application
end
TCP or UDP TCP or UDP
IP IP IP IP
Hop
Link Link Link Link Link Link
by
hop Physical Physical Physical
Application Application
Source and Destination are 16-bit TCP port numbers (IP addresses are
implied by the IP header)
If no options, Data Offset = 5 (which means 20 octets)
IPv4 Addressing
Purpose of an IP address
Unique Identification of:
Source
How would the recipient know where the message
came from?
How would you know who hacked into your network
(network/data security)
Destination
How would you send data to other network
Network Independent Format
IP over anything
Purpose of an IP Address
Identifies a machine’s connection to a network
Uniquely assigned in a hierarchical format
IANA (Internet Assigned Number Authority)
IANA to RIRs (AfriNIC, ARIN, RIPE, APNIC, LACNIC)
RIR to ISPs and large organisations
ISP or company IT department to end users
IPv4 uses unique 32-bit addresses
IPv6 uses unique 128-bit addresses
Basic Structure of an IPv4 Address
32 bit number (4 octet number):
(e.g. 133.27.162.125)
Decimal Representation:
Hexadecimal Representation:
85 1B A2 7D
Addressing in Internetworks
The problem we have
More than one physical network
Different Locations
Larger number of hosts/computer systems
Need a way of numbering them all
IP Addresses Continues
IP version 6
IPv6 designed as successor to IPv4
Expanded address space
Address length quadrupled to 16 bytes (128 bits)
Header Format Simplification
Fixed length, optional headers are daisy-chained
No checksum at the IP network layer
No hop-by-hop fragmentation
Path MTU discovery
64 bits aligned fields in the header
Authentication and Privacy Capabilities
IPsec is mandated
No more broadcast
IPv4 and IPv6 Header Comparison
IPv4 Header IPv6 Header
Type of
Version IHL Total Length Traffic
Service Version Flow Label
Class
Fragment
Identification Flags
Offset Next
Payload Length Hop Limit
Time to Header
Protocol Header Checksum
Live
Source Address
Source Address
Destination Address
Options Padding
Legend
IPv4 = 32 bits
IPv4
32 bits
= 4,294,967,296 possible addressable devices
IPv6
128 bits: 4 times the size in bits
= 3.4 x 1038 possible addressable devices
= 340,282,366,920,938,463,463,374,607,431,768,211,456
5 x 1028 addresses per person on the planet
IPv6 Address Representation
16 bit fields in case insensitive colon hexadecimal representation
2031:0000:130F:0000:0000:09C0:876A:130B
Leading zeros in a field are optional:
2031:0:130F:0:0:9C0:876A:130B
Successive fields of 0 represented as ::, but only once in an address:
2031:0:130F::9C0:876A:130B is ok
2031::130F::9C0:876A:130B is NOT ok (two “::”)
Global Unicast
0010 ... 2000::/3
Address
Link Local 1111 1110
FE80::/10
Unicast Address 10...
Unique Local 1111 1100 ...
FC00::/7
Unicast Address 1111 1101 ...
001
Registry
ISP prefix
Site prefix
LAN prefix
/64
/60=16 /64
/56=256 /64
/52=4096 /64
/48=65536 /64
/32=65536 /48
Nibble (4 bits) Concept
Summary
Vast address space
Hexadecimal addressing
Distinct addressing hierarchy between
ISPs, end-sites, and LANs
ISPs are typically allocated /32s
End customers are typically assigned /48s
LANs have /64s
Other IPv6 features discussed later
Acknowledgement and Attribution
This presentation contains content and information originally
developed and maintained by the following
organisation(s)/individual(s) and provided for the African
Union AXIS Project
www.afnog.org
Introduction to Internet Protocol
(IP) Version 4 and Version 6
56