IPv4. Christian Grothoff.

Similar documents
Master Course Computer Networks IN2097

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Router Architecture Overview

internet technologies and standards

Network Layer: Internet Protocol

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Chapter 4: Network Layer

Network layer: Overview. Network Layer Functions

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

CSC 401 Data and Computer Communications Networks

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Computer Networking Introduction

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

CSCI Computer Networks Fall 2016

COMP211 Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer

Network Layer PREPARED BY AHMED ABDEL-RAOUF

HY 335 Φροντιστήριο 8 ο

TDTS06: computer Networks

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 8. Network Layer (cont d) Network Layer 1-1

internet technologies and standards

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Information Network Systems The network layer. Stephan Sigg

Chapter 4: network layer

Chapter 4 Network Layer: The Data Plane

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

CSCD58 WINTER 2018 WEEK 6 - NETWORK LAYER PART 1. Brian Harrington. February 13, University of Toronto Scarborough

Lecture 3. The Network Layer (cont d) Network Layer 1-1

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

CSCE 463/612 Networks and Distributed Processing Spring 2018

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Chapter 4 Network Layer

Chapter 4 Network Layer

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

The Network Layer Forwarding Tables and Switching Fabric

CSC 4900 Computer Networks: Network Layer

CMPE 80N: Introduction to Networking and the Internet

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

RSC Part II: Network Layer 3. IP addressing (2nd part)

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Internet Technology 3/23/2016

Chapter 4 Network Layer: The Data Plane

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

ECE 158A: Lecture 7. Fall 2015

CSEP 561 Internetworking. David Wetherall

IP : Internet Protocol

Δίκτυα Υπολογιστών ΙΙ. Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Chapter 4 Network Layer: The Data Plane

Network Layer: Control/data plane, addressing, routers

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

ECE 4450:427/527 - Computer Networks Spring 2017

Chapter 4 Network Layer

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

End-to-End Communication

TSIN02 - Internetworking

ICS 451: Today's plan

Vorlesung Kommunikationsnetze

3.7 TCP congestion. reliable data transfer. sliding window. Lecture 4: Transport layer III: flow control and congestion control & Network layer I: IP

Network Layer: Data Plane 4-2

TSIN02 - Internetworking

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

CSC358 Week 6. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

CS 458 Internet Engineering Spring First Exam

Aside: Interaction with Link Layer Computer Networking. Caching ARP Entries. ARP Cache Example

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Chapter 4 Network Layer: The Data Plane

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

EPL606. Internetworking. Part 2a. 1Network Layer

Distributed Systems. 7. Network Layer. Werner Nutt

Internetworking Part 2

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

CS 457 Lecture 11 More IP Networking. Fall 2011

CSC 401 Data and Computer Communications Networks

CSCD 330 Network Programming Spring 2018

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Network Layer: Router Architecture, IP Addressing

Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

CS 3516: Advanced Computer Networks

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Network Layer: DHCP, ICMP, NAT, IPv6

Networking Potpourri: Plug-n-Play, Next Gen

Chapter 4 Network Layer

Internet Protocol (IP)

Transcription:

IPv4 christian@grothoff.org http://grothoff.org/christian/ Sites need to be able to interact in one single, universal space. Tim Berners-Lee 1

The Network Layer Transports datagrams from sending to receiving host Network layer protocols are implemented on every host and router The network layer is commonly referred to as layer 3. 2

The Internet Network Layer application transport layer: TCP, UDP network Routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handeling conventions forwarding table ICMP protocol error reporting router "signaling" data link layer physical layer 3

Routing and Forwarding routing: determine route taken by datagrams from source to destination value in arriving packet's header forwardig: move datagram from input device to output device routing algorithm local forwarding table header value output link 1 2 routing algorithm local forwarding table header value output link 3 routing algorithm local forwarding table header value output link routing algorithm local forwarding table header value output link 4

Datagram networks No call setup at network layer Routers keep no state about end-toend connections application transport network data link physical 1. send data routing algorithm routing algorithm routing algorithm Packets between the same sourcedestination pair may take different paths application transport network data link physical local forwarding table local forwarding table header value output link header value output link 2. receive data local forwarding table header value output link routing algorithm local forwarding table header value output link 5

IPv4 Address Format 32 bits 4 billion 1 possible values Notation is dotted decimal, big-endian: 132.149.42.193 Many values have special meanings 1 1 billon = 1,000,000,000 6

IP Addressing IP addresses identify interfaces Routers have multiple interfaces Hosts typically have only one network interface One interface can have multiple IPs 7

Subnets (1/3) Devices in a subnet share the same subnet part (higherorder bits) of the IP address and can physically reach each other without the help of a router. 8

Subnets (2/3) To determine the subnets, detach each interface from its host or router, creating islands of isolated networks. Those are the subnets. Question: which devices count as routers? 9

Subnets (3/3) 10

Classless InterDomain Routing (CIDR) Subnet part of IP address are the higher-order bits Address format a.b.c.d/x specifies that subnet part has x bits 11

Binary Trie, Path-Compressed-Trie and Level-Compressed Trie 2 2 http://drdobbs.com/windows/184410638 12

How are subnet identifiers assigned? Administrators get a portion of their providers ISP s address space: ISP has 200.23.16.0/20 ISP gives Org 1 200.23.16.0/23: 11001000 00010111 00010000 ISP gives Org 2 200.23.18.0/23: 11001000 00010111 00010010 ISP gives Org 3 200.23.20.0/23: 11001000 00010111 00010100... ISP gives Org 7 200.23.30.0/23: 11001000 00010111 00011110 13

Longest Prefix Matching Prefix match Interface 11001000 00010111 00010 0 11001000 00010111 00011000 1 11001000 00010111 00011 2 otherwise 3 Example: 11001000 00010111 00011000 10101010? 14

Route aggregation 15

Route aggregation 16

The IP Header Offset 0-3 4-7 8-15 16-18 19-31 0 Version Hdr Len TOS Total Length 32 Identification Flags Frag. Offset 64 Time to Live Protocol Hdr. Checksum 96 Source Address 128 Destination Address 160 Options (optional) 160+ Data 17

Where is the IP Header? 18

IP Fragmentation & Reassembly Network links have a Maximum Transfer Unit (MTU) IP datagrams that exceed the MTU are divided on the network Reassembly only happens at the final destination IP header bits are used to identify, fragments order related 19

Example length = 4000ID = xfragflag = 0offset = 0 One large datagram becomes several smaller datagrams length = 1500ID = xfragflag = 1offset = 0 1480 bytes in data field length = 1500ID = xfragflag = 1offset = 185 offset = 1480/8 length = 1040ID = xfragflag = 0offset = 370 20

How does a host get an IP address? Hard-coded by system administrator in configuration Reverse ARP Determined by network service: DHCP other options ( IPv6) 21

Reverse ARP ARP is used to map IP to MAC address: /proc/net/arp Uses broadcasts for discovery, cache, below Layer 3 Ethernet hardware supplies the MAC address Reverse ARP maps MAC address to IP address 22

The Dynamic Host Configuration Protocol arriving client DHCP discover src: 0.0.0.0:68 dest: 255.255.255.255:67 yiaddrr: 0.0.0.0 transaction ID 654 DHCP server: 223.1.2.5 DHCP offer src: 223.1.2.5:67 dest: 255.255.255.255:68 yiaddrr: 223.1.2.4 transaction ID: 654 Lifetime: 3600 secs time DHCP request src: 0.0.0.0:68 dest: 255.255.255.255:67 yiaddrr: 223.1.2.4 transaction ID 655 Lifetime: 3600 secs DHCP ACK src: 223.1.2.5:67 dest: 255.255.255.255:68 yiaddrr: 223.1.2.4 transaction ID 655 Lifetime: 3600 secs 23

The Internet Control Message Protocol Communicate network-level information: Error reporting Diagnostics Type Code Function 3 0 dest net unreachable 3 1 dest host unreachable 3 2 dest prot unreachable 3 3 dest port unreachable 3 6 dest net unknown 3 7 dest host unknown 0 0 Echo reply 8 0 Echo request 4 0 source quench 9 0 router advertisement 10 0 router discovery 11 0 TTL expired 12 0 bad IP header 24

Traceroute Source send series of UDP segments to destination First has TTL=1, second TTL=2, etc. n-th router discards and sends ICMP TTL expired Ultimate destination returns ICMP PORT UNREACHABLE traceroute measures average RTTs for each step 25

How does an ISP get a block of addresses? Internet Corporation for Assigned Names and Numbers (ICANN) 26

How does an ISP get a block of addresses? ICANN (not really) Internet Assigned Numbers Authority (IANA) 27

How does an ISP get a block of addresses? ICANN (not really) IANA (not really) Regional Internet Registry (RIR) 28

How does an ISP get a block of addresses? ICANN (not really) IANA (not really) RIR (IPv4 only until 2011-2012) Their Internet usage is growing very rapidly, and even they can do the math: If everyone in China needed an IPv4 address just one this country would use up one third of the entire public IP address space. Vinton Cerf 29

Questions? 30

Copyright Copyright (C) 2010, 2011 Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. 31