Network Layer - Data Plane
Network Layer - Data Plane
IP protocol
routing protocols • datagram format
• path selection • addressing conventions
network • RIP, OSPF, BGP • packet handling conventions
• SDN controller forwarding
layer table ICMP protocol
•(network) error reporting
• router “signaling”
link layer
physical layer
223.1.2.1
223.1.3.1 223.1.3.2
subnet 223.1.1/24
223.1.1.1
▪ how many 223.1.1.4
subnets? 223.1.1.3
223.1.9.1 223.1.7.1
223.1.8.1 223.1.8.0
subnet host
200.23.16.0/20 part part
11001000 00010111 00010000 00000000
223.1.3.27
223.1.1.3
223.1.2.2
223.1.2.0/24 arriving DHCP client needs
address in this network
223.1.3.1 223.1.3.2
223.1.3.0/24
10.0.0.1
138.76.29.7 10.0.0.4
10.0.0.2
10.0.0.3
all datagrams leaving local network have datagrams with source or destination in
same source NAT IP address: 138.76.29.7, this network have 10.0.0/24 address for
but different source port numbers source, destination (as usual)
Network Layer: 4-64
NAT: network address translation
▪ all devices in local network have 32-bit addresses in a “private” IP
address space (10/8, 172.16/12, 192.168/16 prefixes) that can only
be used in local network class A class B class C
▪ advantages:
▪ just one IP address needed from provider ISP for all devices
▪ can change addresses of host in local network without notifying
outside world
▪ can change ISP without changing addresses of devices in local
network
▪ security: devices inside local net not directly addressable, visible
by outside world
IPv6 datagram
IPv4 datagram
Network Layer: 4-72
Tunneling and encapsulation
A B Ethernet connects two E F
Ethernet connecting IPv6 routers
two IPv6 routers: IPv6 IPv6 IPv6 IPv6
IPv6 datagram
Link-layer frame The usual: datagram as payload in link-layer frame
IPv4 network A B E F
connecting two
IPv6 routers IPv6 IPv6/v4 IPv6/v4 IPv6
IPv4 network
IPv6 datagram
Link-layer frame The usual: datagram as payload in link-layer frame
IPv6 datagram
IPv4 datagram tunneling: IPv6 datagram as payload in a IPv4 datagram
Network Layer: 4-74
Tunneling
A B IPv4 tunnel E F
connecting IPv6 routers
logical view:
IPv6 IPv6/v4 IPv6/v4 IPv6
A B C D E F
physical view:
IPv6 IPv6/v4 IPv4 IPv4 IPv6/v4 IPv6
A-to-B: E-to-F:
B-to-C: B-to-C: B-to-C:
IPv6 IPv6
IPv6 inside IPv6 inside IPv6 inside
IPv4 IPv4 IPv4
Network Layer: 4-75
IPv6: adoption
▪ Google1: ~ 40% of clients access services via IPv6 (2023)
▪ NIST: 1/3 of all US government domains are IPv6 capable
1 https://www.google.com/intl/en/ipv6/statistics.html
Network Layer: 4-77