Ch.7 Internet Protocol: Connectionless Datagram Delivery (IPv4, IPv6)

Similar documents
Chapter 10 User Datagram Protocol (UDP)

Ch.9 Internet Protocol: Error And Control Messages (ICMP)

Ch. 22 Bootstrap And Autoconfiguration (DHCP, NDP or IPv6-ND)

Ch.6 Mapping Internet Addresses to Physical Addresses (ARP)

CSF645 Mobile Computing 行動計算. IPv6. (Internetworking With TCP/IP vol Part 31) 吳俊興國立高雄大學資訊工程學系

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Position of IP and other network-layer protocols in TCP/IP protocol suite

Introduction. IP Datagrams. Internet Service Paradigm. Routers and Routing Tables. Datagram Forwarding. Example Internet and Conceptual Routing Table

Introduction to Internetworking

Internetwork Protocols

Part I: INTRODUCTION 吳俊興 國立高雄大學資訊工程學系. Fall 2006

Chapter 20 Network Layer: Internet Protocol 20.1

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Internet Networking recitation #2 IP Checksum, Fragmentation

Chapter 5 OSI Network Layer

IP : Internet Protocol

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

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Lecture 9: Internetworking

ET4254 Communications and Networking 1

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

Introduction to TCP/IP networking

Internet Protocols (chapter 18)

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

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

Chapter 7 Internet Protocol Version 4 (IPv4) Kyung Hee University

CH. 3 IP FORWARDING AND ROUTING

EE 610 Part 2: Encapsulation and network utilities

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

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

Goal of Today s Lecture. EE 122: Designing IP. The Internet Hourglass. Our Story So Far (Context) Our Story So Far (Context), Con t

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

Ch.5 Internet Addressing 吳俊興 國立高雄大學資訊工程學系

The Internet Protocol (IP)

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

TSIN02 - Internetworking

Chapter Motivation For Internetworking

COMP/ELEC 429/556 Introduction to Computer Networks

IP Address Assignment

CS 3516: Advanced Computer Networks

OSI Network Layer. Chapter 5

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

IPv4 Lecture 10a. COMPSCI 726 Network Defence and Countermeasures. Muhammad Rizwan Asghar. August 14, 2017

Network Layer: Internet Protocol

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Packetization Layer Path Maximum Transmission Unit Discovery (PLPMTU) For IPsec Tunnels

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

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

Chapter 2 PROTOCOL ARCHITECTURE

CHAPTER-2 IP CONCEPTS

User Datagram Protocol

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

CS 3516: Computer Networks

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

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

ECE4110 Internetwork Programming. Introduction and Overview

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

SEN366 (SEN374) (Introduction to) Computer Networks

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

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

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

The Internet. The Internet is an interconnected collection of netw orks.

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

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

Router Architecture Overview

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

ECE 158A: Lecture 7. Fall 2015

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

Internet Protocol version 6

TCP /IP Fundamentals Mr. Cantu

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

The Network Layer. Antonio Carzaniga. April 22, Faculty of Informatics University of Lugano Antonio Carzaniga

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

Chapter 4: Network Layer

ECE 4450:427/527 - Computer Networks Spring 2017

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Lecture 2: Basic routing, ARP, and basic IP

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

CSCI-GA Operating Systems. Networking. Hubertus Franke

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Recap. Recap. Internetworking. First mile problem. Internet. End Users. Last mile problem. Direct link networks Packet switching.

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

TCP/IP THE TCP/IP ARCHITECTURE

ETSF05/ETSF10 Internet Protocols Network Layer Protocols


SEMESTER 1 Chapter 5 OSI Network Layer V What services does the network layer provide?

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

UNIT III. 3.1 Circuit switching vs. packet switching / Packet switched networks. Figure 3.1.1: Switching Techniques

Internet Protocol (IP)

UDP: Datagram Transport Service

Transcription:

CSC521 Communication Protocols 網路通訊協定 Ch.7 Internet Protocol: Connectionless Datagram Delivery (IPv4, IPv6) 吳俊興國立高雄大學資訊工程學系 Internetworking With TCP/IP, Vol I: Sixth Edition, Douglas E. Comer

Outline 1 Introduction 2 A Virtual Network 3 Internet Architecture And Philosophy 4 Principles Behind The Structure 5 Connectionless Delivery System Characteristics 6 Purpose And Importance Of The Internet Protocol 7 The IP Datagram 8 Datagram Type Of Service And Differentiated Services 9 Datagram Encapsulation 10 Datagram Size, Network MTU, and Fragmentation 11 Datagram Reassembly 12 Header Fields Used For Datagram Reassembly 13 Time To Live (IPv4) And Hop Limit (IPv6) 14 Optional IP Items 15 Options Processing During Fragmentation 16 Network Byte Order 17 Summary 2

Concepts of The Internet Protocol A Virtual Network IP allows a user to think of an internet as a single virtual network that interconnects all hosts, and through which communication is possible; its underlying architecture is both hidden and irrelevant Three sets of internet services conceptual separation Internet software is designed around three conceptual networking services arranged in a hierarchy; much of its success has resulted because this architecture is surprisingly robust and adaptable Two philosophical underpinnings Build reliable service on top of an unreliable, connectionless base The lowest level service exactly matches the facilities provided by underlying hardware networks and the second level provides the service that applications expect 3

IP Characteristics The most fundamental Internet service consists of a packet delivery system Connectionless Unreliable Best-effort delivery Defines three important items Internet addressing scheme Format of packets for the (virtual) Internet Packet forwarding Three important specifications IP defines basic unit of data transfer used throughout a TCP/IP internet The basic transfer unit: a header and payload IP software performs the forwarding function, choosing a path over which a packet will be sent IP includes a set of rules that embody the basis of unreliable delivery 4

Elements of a Packet Switching Protocol Addressing: source IP and destination IP Length: header length and total length Error control: checksum and time-to-live Encapsulation: fragmentation and resembling support Extensibility: version service type de-multiplexing IP option 5

IP Datagram Header Format Vers HLen Service Type Total Length Identification Flags Fragment Offset Time to Live (TTL) Protocol Header Checksum Source IP Address Destination IP Address IP Options (If Any) Padding Data (Payload) VERS: 4 HLEN: header length in 32-bit words Service Type: support differentiated services (DiffServ) Total Length: header + data (MAX=65,535 octets) Time to Live (TTL) how long allowed to remain in network hop limit (i.e. 30, 60, 64) Protocol (1: ICMP; 6: TCP; 17: UDP) Header Checksum Source IP; Destination IP 6

Datagram Encapsulation Encapsulated in Ethernet frame 20-octet IP header follows 14-octet Ethernet header Ethernet Type Field set to 0x0800 source IP: 128.10.2.3 (800a0203) destination IP: 128.10.2.8 (800a0208) IP type: 01 (ICMP) 7

IPv6 Datagram Format IPv6 general form Base header with TCP segment One extension Two extensions 8

IPv6 Base Header Format 9

A Potential Problem MTU Issues Network hardware limits maximum size of frame Known as the network Maximum Transmission Unit ( MTU ) e.g., Ethernet limited to 1500 octets Possible ways to accommodate networks with differing MTUs Force datagram to be less than smallest possible MTU Inefficient Cannot know minimum MTU Hide the network MTU and accommodate arbitrary datagram size A datagram can contain up to 65535 total octets (including header) Question: how is encapsulation handled if datagram exceeds network MTU? 10

Datagram Size, Network MTU, and Fragmentation PathMTU The minimum of the MTUs on networks along the path IPv4 allows any router along a path to fragment a datagram IPv6 requires the original source to learn the path MTU and perform fragmentation 11

IPv4 Datagram Fragmentation Usually performed by routers Divides datagram into several, smaller datagrams called fragments Fragment uses same header format as datagram Each fragment forwarded independently Offset specifies where data belongs in original datagram Offset actually stored as multiples of 8 octets MORE FRAGMENTS bit turned off in header of fragment#3 12

IPv6 Fragmentation And Path MTU Discovery (PMTUD) IPv6 uses a form of early binding Path MTU Discovery (PMTUD) A host should probe periodically by sending a larger datagram 13

Reassembly Ultimate destination puts fragments back together Known as reassembly No need to reassemble sub-fragments first Timer used to ensure all fragments arrive Timer started when first fragment arrives If timer expires, entire datagram discarded Header Fields Used For Datagram Reassembly IPv4 datagram header IDENTIFICATION FLAGS FRAGMENT OFFSET IPv6 Fragment Extension Header IDENTIFICATION M FRAGMENT OFFSET 14

Time to Live (IPv4) and Hop Limit (IPv6) how long allowed to remain in network hop limit (i.e. 30, 60, 64) TTL field of datagram header decremented at each hop (i.e., each router) If TTL reaches zero, datagram discarded Prevents datagrams from looping indefinitely (in case forwarding error introduces loop) IETF recommends initial value of 255 (max) 15

IPv4 Optional IP Items the IP OPTIONS field that follows the destination address is used to send optional items IPv6 each of the extension headers is optional, and a given datagram may include multiple extensions 16

IPv4 Options 17

IPv6 Optional Extensions 18

IPv4 Processing Options During Fragmentation The record route option should only be copied into one of the fragments A source route option must be copied into all fragments IPv6 A datagram into two conceptual pieces: unfragmentable fragmentable The Hop-By-Hop Header and Route Header are not fragmentable; other extension headers are fragmentable 19

IPv6 Processing Options During Fragmentation 20

Little endian Network Byte Order The lowest memory address contains the low-order byte of the integer Big endian The lowest memory address holds the high-order byte of the integer 21

Checksum Field In IPv4 Datagram Header 16-bit 1's complement checksum Over IP header only! Recomputed at each hop unsigned short checksum(char *ptr, int len) { unsigned short *buf = (unsigned short *) ptr; int nwords = len / 2; unsigned long sum; } for(sum = 0; nwords > 0; nwords--) sum += swap16(*buf++); sum = (sum >> 16) + (sum & 0xffff); sum += (sum >> 16); return swap16(~sum); 22

Summary Internet Protocol (IP) provides basic connectionless delivery service for the Internet defines IP datagram to be the format of packets on the Internet Datagram header Has fixed fields Specifies source, destination, and type Allows options Datagram encapsulated in network frame for transmission Fragmentation Needed when datagram larger than MTU Usually performed by routers Divides datagram into fragments Reassembly Performed by ultimate destination If some fragment(s) do not arrive, datagram discarded To accommodate all possible network hardware, IP does not require reliability (best-effort semantics) 23