Chapter - 4mk23 - Section 4.4 - IP
Chapter - 4mk23 - Section 4.4 - IP
chapter goals:
v understand principles behind network layer
services:
§ network layer service models
§ forwarding versus routing
§ how a router works
§ routing (path selection)
§ broadcast, multicast
v instantiation, implementation in the Internet
link layer
physical layer
…
in: one large datagram
§ different link types, out: 3 smaller datagrams
different MTUs
v large IP datagram divided
(“fragmented”) within net reassembly
§ one datagram becomes
several datagrams
§ “reassembled” only at …
final destination Note: IPv6
fragments at
§ IP header bits used to node, not router
identify, order related (unlike IPv4)
fragments
Network Layer 4-5
IP addressing: introduction
223.1.1.1
v IP address: 32-bit 223.1.2.1
identifier for host, router
interface 223.1.1.2
223.1.1.4 223.1.2.9
v interface: connection
between host/router and 223.1.3.27
physical link 223.1.1.3
223.1.2.2
§ routers typically have
multiple interfaces
§ host typically has one or
223.1.3.1 223.1.3.2
two interfaces (e.g., wired
Ethernet, wireless 802.11)
v IP addresses associated
with each interface 223.1.1.1 = 11011111 00000001 00000001 00000001
223 1 1 1
in chapter 5, 6.
223.1.3.27
223.1.1.3
223.1.2.2
is called a subnet
223.1.3.0/24
subnet host
part part
11001000 00010111 00010000 00000000
200.23.16.0/23
DHCP offer
src: 223.1.2.5, 67
dest: 255.255.255.255, 68
yiaddr: 223.1.2.4
transaction ID: 654
lifetime: 3600 secs
DHCP request
src: 0.0.0.0, 68
dest:: 255.255.255.255, 67
yiaddr: 223.1.2.4
transaction ID: 655
lifetime: 3600 secs
DHCP ACK
src: 223.1.2.5, 67
dest: 255.255.255.255, 68
yiaddr: 223.1.2.4
transaction ID: 655
lifetime: 3600 secs
Organization 0
200.23.16.0/23
Organization 1
“Send me anything
200.23.18.0/23 with addresses
Organization 2 beginning
200.23.20.0/23 . Fly-By-Night-ISP 200.23.16.0/20”
.
. . Internet
.
Organization 7 .
200.23.30.0/23
“Send me anything
ISPs-R-Us
with addresses
beginning
199.31.0.0/16”
Organization 0
200.23.16.0/23
“Send me anything
with addresses
Organization 2 beginning
200.23.20.0/23 . Fly-By-Night-ISP 200.23.16.0/20”
.
. . Internet
.
Organization 7 .
200.23.30.0/23
“Send me anything
ISPs-R-Us
with addresses
Organization 1 beginning 199.31.0.0/16
or 200.23.18.0/23”
200.23.18.0/23
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
data
32 bits
Network Layer 4-28
Other changes from IPv4
v checksum: removed entirely to reduce processing
time at each hop
v options: allowed, but outside of header, indicated
by “Next Header” field
v ICMPv6: new version of ICMP
§ additional message types, e.g. “Packet Too Big”
§ multicast group management functions
IPv6 datagram
IPv4 datagram
Network Layer 4-30
Tunneling
A B IPv4 tunnel E F
connecting IPv6 routers
logical view:
IPv6 IPv6 IPv6 IPv6
A B C D E F
physical view:
IPv6 IPv6 IPv4 IPv4 IPv6 IPv6
A B C D E F
physical view:
IPv6 IPv6 IPv4 IPv4 IPv6 IPv6
data data
A-to-B: E-to-F:
IPv6 B-to-C: B-to-C: IPv6
IPv6 inside IPv6 inside
IPv4 IPv4 Network Layer 4-32
Transition from IPv4 to IPv6
v Rollout since mid-2000s
§ More technical details regarding address conversion
§ Routing
§ 6to4 routers
§ Various mechanism (search for ‘IPv6 transition
mechanism’)
v South Africa:
§ 24 d.d. 3 April 2017; 19 dd 6 March 2023: https://www-
public.tem-
tsp.eu/~maigron/RIR_Stats/RIPE_Allocations/IPv6/ByNb/Z
A.html
§ More stats: http://ipv6-test.com/stats/country/ZA
v Internationally still relatively low uptake
§ E.g. Google stats:
https://www.google.com/intl/en/ipv6/statistics.html
Network Layer 4-33
Transition from IPv4 to IPv6