IP : Internet Protocol

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

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

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

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

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

Lecture 9: Internetworking

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

Internet Networking recitation #2 IP Checksum, Fragmentation

The Internet Protocol (IP)

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

Introduction to TCP/IP networking

IPv4. Christian Grothoff.

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

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

Network and Security: Introduction

Topics for This Week

Chapter 5 Network Layer

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

Chapter 5 OSI Network Layer

EE 610 Part 2: Encapsulation and network utilities

Internet Control Message Protocol (ICMP)

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

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

CS 3516: Advanced Computer Networks

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

IP Protocols. ALTTC/Oct

OSI Network Layer. Chapter 5

CS 3516: Computer Networks

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

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

Veryx ATTEST TM. Sample Test cases Overview. Conformance Test Suite. Internet Protocol version 4 (IPv4) Part Number: T / TCLS IPv /1.

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

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

TSIN02 - Internetworking

ECE4110 Internetwork Programming. Introduction and Overview

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

Routing review/intro. TCP/IP class. Jim Binkley 1

User Datagram Protocol

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

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

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

ET4254 Communications and Networking 1

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

Internetwork Protocols

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

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

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

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

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

Vorlesung Kommunikationsnetze

Chapter 20 Network Layer: Internet Protocol 20.1

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

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

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1

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.

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

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

(ICMP), RFC

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

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

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

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

CSCI-GA Operating Systems. Networking. Hubertus Franke

Internetworking Part 2

NET2-2 Internet Protocol and Routing Network Science Certificate George Mason University

Lecture 2: Basic routing, ARP, and basic IP

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

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

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

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

CPSC156a: The Internet Co-Evolution of Technology and Society. Lecture 4: September 16, 2003 Internet Layers and the Web

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

CS 465 Networks. Disassembling Datagram Headers

Introduction to Internetworking

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

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

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

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

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

Introduction to routing in the Internet

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

Network Layer: Internet Protocol

Datagram. Source IP address. Destination IP address. Options. Data

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

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

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Internet Control Message Protocol (ICMP), RFC 792. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

Introduction to routing in the Internet

internet technologies and standards

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

Master Course Computer Networks IN2097

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management

IPv6: An Introduction

Transcription:

1/20 IP : Internet Protocol Surasak Sanguanpong nguan@ku.ac.th http://www.cpe.ku.ac.th/~nguan Last updated: July 30, 1999

Agenda 2/20 IP functions IP header format Routing architecture

IP layer 3/20 defines a single virtual network on top of different kinds of hardware platform using IP address functions of IP route packet fragmentation handle type of services send and receive error and control message using ICMP

IP attributes 4/20 handle data unit called IP datagrams connectionless protocol - doesn t promise reliable delivery best effort delivery packets may be lost, out of sequence, or duplicated due to various reasons

IP encapsulation 5/20 with Ethernet frame datagrams Ethernet hdr IP header data

IP reframing 6/20 MAC dest MAC src type IP source IP dest IP will reframe the packet when A send data to B 0:0:c:6:13:4a 0:0:e8:15:cc:c 0x800 158.108.33.4 158.108.2.71 packet to router IP 158.108.33.1 MAC 0:0:c:6:13:4a IP 158.108.2.1 MAC 0:0:c:6:12:40 MAC dest MAC src type IP source IP dest 0:0:33:10:a:c 0:0:c:6:12:40 0x800 158.108.33.4 158.108.2.71 packet from router A IP 158.108.33.4 MAC 0:0:e8:15:cc:c B IP 158.108.2.71 MAC 0:0:33:10:a:c Change MAC address, IP address be the same

20 bytes IP datagrams 0 15 16 31 vers:4 hlen:4 TOS:8 total length:16 identification:16 flags:3 frag offset:13 time to live:8 protocol:8 header checksum :16 source address :32 destination address :32 options and padding :32 data : 7/20

IP header details (1) 8/20 vers - version = 4 hlen - header length in 32-bit words, hlen =5 with no options TOS - type of service, desired quality of services 0 1 2 3 4 5 6 7 Prec. D T R 0 0 bits if 0 if 1 0-2 Precedence 3 Normal delay low delay 4 Normal throughput High throughput 5 Normal Reliability High reliability 6-7 Reserved

IP header details (2) 9/20 Total length - max datagrams (including header) is 64K identification, flags, fragmentation - use to segmentation and reassembly packet TTL - Time to live, max number of routers through which the datagrams may pass (hop count) decrease at each router to prevent looping normally set to 30 if ttl == 0 discard and send ICMP TTL exceeded to source IP Protocol - higher-level protocol that provide data 1 = datagrams carries an ICMP messages 6 = datagrams carries an TCP segments 17 = datagrams carries an UDP datagrams

IP header details (3) 10/20 header checksum - 16 bit one s compliment, note that there is no data checksum source address - 32 bit IP source address destination address - 32 bit IP destination address option and padding - additional info to control functions such as routing and security

Routing 11/20 process of choosing a path over which to send datagrams IP routes packet by looking at the IP network number routing components determine what path are available selecting the best path for a particular purpose using those paths to reach other networks devices which perform routing are routers (historically call IP gateways)

Routing Table 12/20 Every router contains a routing table of the network numbers The table records which connection can be used to reach a particular network plus some indication of the performance or cost of using connection

Routing Table form 13/20 Routing Table form <network, gateways, others> % netstat -rn Destination Gateway Flags Refcnt Use Interf 127.0.0.1 127.0.0.1 UH 4 72705 lo0 default 158.108.33.1 UG 14 10265 le0 158.108.33.0 158.108.33.3 U 4 1702 le0

How to create routing Table 14/20 static route - by hand # route add 158.108.20.0 158.108.33.1 dynamic routes - via routing protocol via ICMP redirect

Routing Protocol 15/20 Routing protocol manages and updates routing table on each network node Unix often implemented using one of the two daemons: routed : basic routing daemon for interior routing, normally with RIP gated : sophisticated daemon for interior and exterior routing, with additional protocol such as OSPF, BGP

Fragmentation 16/20 fragmentation = processed used by IP to reduced sie of datagram that are too big for network interface MTU e.g. fragment 2000 bytes to Ethernet (MTU=1500) fragments should be reassembled at the final destination (expensive process) How? each fragment has its own header each fragment carries the same 16 bit identification number Each fragment must be aligned with an eight-octet boundary

Fragmentation flag 17/20 Identification number 16 bits integer value used to identify all fragments This id is not a sequence number! flags - 3 bits control fragmentation 0= may fragment 1= don t fragment 0= last fragment 1= more fragments reserve, must be 0 R DF MF fragment offset - indicate the distance of fragment data from the start of the original datagram, measure in 8 octets unit

Fragmentation sample 18/20 other header ident flags offset data original. 232 0 0 0..2000 Ethernet with MTU of 1500 20 bytes 20 bytes... 232 1 0 0..1479... 232 0 185 1480..2000 identification number more fragment last fragment post 0 post 185*8=1480

Problem in fragmentation 19/20 The end node has no way of knowing how many fragments there be. The end node has to manage enough buffer space to handle reassembly process. If any fragments lost, all datagram must be discarded End node starts a timer when received the first fragment, if any fragments fails to arrive(usually 30 secs), all datagrams must be discarded Since the IP service is connectionless. No attempt is made by IP to recover these situations, though ICMP error message may be generated

Avoiding fragmentation 20/20 For datagrams within the same physical network, the MTU is known. TCP/UDP then use the MTU to limit the message sie pass to IP; messages will never be fragmented. For datagrams passed to diff net, unknown MTU! standard recommend that all networks supporting TCP/IP have an MTU of at least 576 bytes 512 bytes data+20 bytes TCP hdr + 20 bytes IP hdr with options TO GUARANTEED THAT A PACKET OF 576 BYTES OR LESS IS NEVER FRAGMENTED