1
CS 3640: Introduction to Networks and Their Applications
Fall 2018, Lecture 10: The Network Layer I: Packet fragmentation, IPv4, and IPv6 (Credit: Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
CS 3640: Introduction to Networks and Their Applications Fall 2018, - - PowerPoint PPT Presentation
CS 3640: Introduction to Networks and Their Applications Fall 2018, Lecture 10: The Network Layer I: Packet fragmentation, IPv4, and IPv6 (Credit: Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain 1
1
Fall 2018, Lecture 10: The Network Layer I: Packet fragmentation, IPv4, and IPv6 (Credit: Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
2
You should…
3
Today in class
Recap: Network layer functions and IP addressing
denominator.
Recap: Network layer functions and IP addressing
string known to edge routers (access networks).
Recap: CIDR (Classless Inter Domain Routing)
there are 2.1M of them!
rid of IP address “classes”.
have the same prefix.
if the router uses the same next hop for all IP addresses reachable by it.
in this binary tree.
Recap: CIDR (Classless Inter Domain Routing)
can reach all nodes on the (n+1)th to 32nd levels that have the same prefix.
the router uses the same next hop for all IP addresses reachable by it. Prefix Netmask Prefix After Masking (in Binary) Next Hop Reachable Through 207.46.0.0 19
11001111 00101110 000***** ********
Port 1 207.46.32.0 19
11001111 00101110 001***** ********
Port 1 207.46.64.0 18
11001111 00101110 01****** ********
Port 1 207.46.128.0 18
11001111 00101110 10****** ********
Port 2 207.46.192.0 18
11001111 00101110 11****** ********
Port 3 207.46.0.0 18
11001111 00101110 00****** ********
Port 1 207.46.0.0 17
11001111 00101110 0******* ********
Port 1 Same length netmask All bits match except for the last one Same port
8
Today in class
Fragmentation at the network layer
current networks link layer.
sized chunks. Slap an IP header on each chunk. That’s one packet.
Fragmentation at the network layer
MTU = 2000 MTU = 4000 MTU = 1500
Datagram Dgram1 Dgram2 1 2 3 4
Fragmentation at the network layer
Version
HLen TOS Datagram Length 8 16 24 31 4 12 19 Identifier
Flags
Offset TTL Protocol Checksum Source IP Address Destination IP Address Options (if any, usually not) Data
Fragmentation at the network layer
MTU = 2000 MTU = 4000 MTU = 1500
Data Data Data IP Hdr IP IP
Length = 3820, M = 0 3800 20 Length = 2000, M = 1 Offset = 0 Length = 1840, M = 0 Offset = 1980 1980 20 1820 20
1980 + 1820 = 3800
Fragmentation at the network layer
MTU = 2000 MTU = 1500
Data Data IP IP Data Data IP IP
Length = 2000, M = 1 Offset = 0 Length = 1840, M = 0 Offset = 1980 1980 20 1820 20 20 20 1480 500 Length = 520, M = 1 Offset = 1480 Length = 1500, M = 1 Offset = 0
Data Data IP IP
20 20 1480 340 Length = 360, M = 0 Offset = 3460 Length = 1500, M = 1 Offset = 1980
1480 + 500 = 1980
Fragmentation at the network layer Data IP
20 1480
Data IP
20 500 Length = 520, M = 1, Offset = 1480 Length = 1500, M = 1, Offset = 0
Data IP
20 1480
Data IP
20 340 Length = 360, M = 0, Offset = 3460 Length = 1500, M = 1, Offset = 1980
Reassembly happens at the destination.
fragment offset + len(data in fragment).
Add data field to datagram. Repeat until all fragments are assembled.
Fragmentation at the network layer
independently of its fellow fragments [packet switching]
effort, no guarantees]
sharing]
Fragmentation at the network layer
CPU required to split them up and put them together correctly.
destination, the packet is too big. Reduce the packet size and try again.
17
Today in class
No more IPv4
Region Regional Internet Registry (RIR) IPv4 Exhaustion Date Asia/Pacific APNIC April 19, 2011 Europe/Middle East RIPE September 14, 2012 South America LACNIC June 10, 2014 North America ARIN September 22, 2015 Africa AFRINIC January 2022 (Projected)
IPv6 to replace IPv4
A redesign opportunity
Transitioning to IPv6
incentive will always be difficult. This is why simple changes to Internet protocols can take decades to trickle down to the real world.
Core Internet Business Network Home Network
IPv6 Ready IPv6 Ready IPv4 Only :(
IPv6 Packets
Transitioning to IPv6
20 02: 207. CF 2E: 46. C0 00: 192. 0000 IPv4: IPv6:
Routing between 6to4 end-hosts
IPv4 Internet Dest: 16.79.8.0 IPv4 – 207.46.192.0 IPv6 – 2002:CF2E:C000:: IPv4 – 16.79.8.0 IPv6 – 2002:104F:0800:: Dest: 2002:104F:0800::
Routing between a 6to4 and IPv6 end-host
IPv4 – 192.88.99.1 IPv6 – 2002:: /16 IPv4 Internet IPv6 Internet Dest: 192. 88.99.1 IPv4 – 207.46.192.0 IPv6 – 2002:CF2E:C000:: IPv6 – 1893:92:13:99:: Dest: 1893:92:13:99::
Special, anycasted IPv4 address for 6to4 Relay Routers Many ISPs provide 6to4 relay routers
Routing between an IPv6 end-host and a 6to4 end-host
IPv4 – 192.88.99.1 IPv6 – 2002:: /16 IPv4 Internet IPv6 Internet Dest: 207.46.192.0 IPv4 – 207.46.192.0 IPv6 – 2002:CF2E:C000:: IPv6 – 1893:92:13:99:: Dest: 2002:CF2E:C000::
Use normal IPv6 routing to reach a 6to4 relay router
Problems with 6to4 encapsulation
More features supported in IPv6
tables for information about the destination IP.
gets a static IP address with their device!
Unintended negative consequences of IPv6
from billions of easy to obtain addresses. Use random host identifiers so no legal consequences.
attacks using source routing.
to people using the same network.
November 6th mid-term elections!
me know!
Assignment 2