Internet Protocol. Raj Jain. Washington University in St. Louis.



Similar documents
8.2 The Internet Protocol

IP - The Internet Protocol

Lecture Computer Networks

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Network layer: Overview. Network layer functions IP Routing and forwarding

Introduction to TCP/IP

Internet Protocol Version 6 (IPv6)

NETWORK LAYER/INTERNET PROTOCOLS

Overview of TCP/IP. TCP/IP and Internet

Network Layer: Network Layer and IP Protocol

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Internet Architecture and Philosophy

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Internet Protocols. Background CHAPTER

Transport and Network Layer

IP addressing and forwarding Network layer

04 Internet Protocol (IP)

Ethernet. Ethernet. Network Devices

RARP: Reverse Address Resolution Protocol

Chapter 13 Internet Protocol (IP)

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Network Security TCP/IP Refresher

Network Programming TDC 561

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Future Internet Technologies

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Datacommunication. Internet Infrastructure IPv4 & IPv6

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Cisco Configuring Commonly Used IP ACLs

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Chapter 11. User Datagram Protocol (UDP)

PART OF THE PICTURE: The TCP/IP Communications Architecture

IP Addressing A Simplified Tutorial

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Computer Networks CS321

Subnetting,Supernetting, VLSM & CIDR

Chapter 4 Network Layer

IP address format: Dotted decimal notation:

Transport Layer. Chapter 3.4. Think about

Introduction to IP v6

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Internet Control Protocols Reading: Chapter 3

TCP/IP and the Internet

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Technical Support Information Belkin internal use only

1000 CCNA Certification Exam Preparation Questions and Answers:

2. IP Networks, IP Hosts and IP Ports

Transport Layer Protocols

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

- IPv4 Addressing and Subnetting -

How Does Ping Really Work?

TCP/IP Fundamentals. Edmund Lam IT Audit Manager University of California 7/25/99 1

What is a DoS attack?

Classful IP Addressing. Classless Addressing: CIDR. Routing & Forwarding: Logical View of a Router. IP Addressing: Basics

Chapter 9. IP Secure

The Internet. Internet Technologies and Applications

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Lecture 8. IP Fundamentals

The Network Layer. Raj Jain. Washington University in St. Louis

Data Communications and Networking Overview

Networking Test 4 Study Guide

Troubleshooting Tools

Network Models and Protocols

UPPER LAYER SWITCHING

Internet Protocols Fall Lectures 7-8 Andreas Terzis

A PPENDIX L TCP/IP and OSI

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Transport Layer. Chapter 4: Application Protocols.

How do I get to

Chapter 1: Introduction

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

IP Routing Features. Contents

Internet Packets. Forwarding Datagrams

IP Next Generation (IPv6)

Internetworking and IP Address

IPv6 Fundamentals Ch t ap 1 er I : ntroducti ti t on I o P IPv6 Copyright Cisco Academy Yannis Xydas

ACHILLES CERTIFICATION. SIS Module SLS 1508

Computer Networks. Main Functions

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Troubleshooting TCP/IP

Internetworking and Internet-1. Global Addresses

Transcription:

Internet Protocol Raj Jain Washington University Saint Louis, MO 63131 Jain@cse.wustl.edu These slides are available on-line at: http://www.cse.wustl.edu/~jain/cse473-05/ 13-1

Overview! Internetworking Terms! IP Header! Fragmentation and Re-assembly! IP Addressing, Subnetting, Private Addresses! Address Resolution Protocol (ARP)! Internet Control Message Protocol (ICMP) 13-2

TCP/IP Protocols! Network access layer: Ethernet, Token Ring! Internet layer: IP! Host-host layer: TCP, UDP! Process/application layer: FTP, Telnet, Mail (SMTP) MIME BGP FTP HTTP SMTP TELNET SNMP TCP IP UDP ICMP 13-3

! End-system: Host Internetworking Terms! Network: Provides data transfer between end-systems! Internet: A collection of networks! Subnetwork: Each component of an internet! Intermediate System: Connects two subnetworks FTP Telnet SMTP FTP Telnet SMTP Host A Subnet 1 Intermediate System Subnet 2 Host B 13-4

Internet = Collection of Networks! Any computer can talk to any other computer Net 2 Net 1 Net 3 Net 4 13-5

Internet Protocol (IP)! Layer 3 protocol that forwards datagrams across internet! Uses routing tables prepared by routing protocols, e.g., Open Shortest Path First (OSPF), Routing Information Protocol (RIP)! Connectionless service vs connection-oriented (circuits) 13-6

IP Header 4b 4b 8b 16b Ver IHL ToS Total Length Id Flags Fragment Offset TTL Protocol Header Checksum Source Address Destination Address Options + Padding 3b 20B 13-7 Fig 16.7

! Version (4 bits) IP Header (Cont)! Internet header length (4 bits): in 32-bit words. Min header is 5 words or 20 bytes.! Type of service (8 bits): Reliability, precedence, delay, and throughput! Total length (16 bits): header+data in bytes! Identifier (16 bits): Helps uniquely identify the datagram during its life for a given source, destination address 13-8

! Flags (3 bits): IP Header (Cont)! More flag - used for fragmentation! No-fragmentation! Reserved! Fragment offset (13 bits): In units of 8 bytes! Time to live (8 bits): Specified in router hops! Protocol (8 bits): Next level protocol to receive the data! Header checksum (16 bits): 1 s complement sum of all 16-bit words in the header 13-9

! Source Address (32 bits) IP Header (Cont)! Destination Address (32 bits)! Options (variable): Security, source route, record route, stream id (used for voice) for reserved resources, timestamp recording! Padding (variable): Makes header length a multiple of 4! Data (variable): Data + header < 65,535 bytes 13-10

Fragmentation and Re-assembly! When to re-assemble?! At destination: Results in packets getting smaller as data traverses internet! Intermediate re-assembly " Need large buffers at routers " Buffers may fill with fragments " All fragments must go through same router # Inhibits dynamic routing! IP re-assembles at destination only 13-11

IP Fragmentation Fields! Data Unit Identifier (ID)! Identifies end system originated datagram " Source and destination address " Protocol layer generating data (e.g. TCP) " Identification supplied by that layer! Total length: Length of user data plus header in octets! Data Offset - Position of fragment in original datagram! More flag " In multiples of 64 bits (8 octets) " Indicates that this is not the last fragment 13-12

Fragmentation Example Second Fragment Data length = 196 B Segment Offset = 26 (64-bit units) = 208 B More = 0 Original datagram Data length = 404 B Segment Offset = 0 More = 0 13-13 First Fragment Data length = 208 B Segment Offset = 0 More = 1

IP Address! Class A: 0 Network Local 1 7 24 bits! Class B:! Class C: 10 Network Local 2 14 16 bits 110 Network Local 3 21 8 bits! Class D: 1110 Host Group (Multicast) 4 28 bits! Class E: 11110 Future use 5 27 bits! Local = Subnet + Host (Variable length) Router Subnet Router 13-14

IP Addressing 128.10 Router 128.211 128.10.0.1 128.10.0.2 128.211.6.115 Router 10.0.0.37 10.0.0.49 192.5.48.3! All IP hosts have a 32-bit address.128.10.0.1 =1000 0000 0000 1010 0000 0000 0000 0001! All hosts on a network have the same network prefix 10 Router 13-15 192.5.48

Subnetting! All hosts on a subnetwork have the same prefix. Position of the prefix is indicated by a subnet mask! Example: First 23 bits = subnet Address: 10010100 10101000 00010000 11110001 Mask: 11111111 11111111 11111110 00000000.AND. 10010100 10101000 00010000 00000000 Network Subnet 1 Subnet 2 Subnet n 13-16

Forwarding an IP Datagram! Delivers datagrams to destination network (subnet)! Routers maintain a routing table of next hops! Next Hop field does not appear in the datagram Net 1 R1 Net 2 R2 Net 3 R3 Net 4 Table at R2: Destination Net 1 Net 2 Net 3 Net 4 Next Hop Forward to R1 Deliver Direct Deliver Direct Forward to R3 13-17

Private Addresses! Any organization can use these inside their network Can t go on the internet. [RFC 1918]! 10.0.0.0-10.255.255.255 (10/8 prefix)! 172.16.0.0-172.31.255.255 (172.16/12 prefix)! 192.168.0.0-192.168.255.255 (192.168/16 prefix) Private Network Private Addresses Network Address Translator Public Addresses Internet 13-18

Address Resolution Protocol R E! Problem: Given an IP address find the MAC address! Solution: Address resolution protocol! The host broadcasts a request: What is the MAC address of 127.123.115.08?! The host whose IP address is 127.123.115.08 replies back: The MAC address for 127.123.115.08 is 8A-5F-3C-23-45-5616! A router may act as a proxy for many IP addresses 13-19

Internet Control Message Protocol (ICMP)! Required companion to IP. Provides feedback from the network.! Destination unreachable! Time exceeded! Parameter problem! Source quench! Redirect! Echo! Echo reply! Timestamp! Timestamp reply! Information Request! Information reply 13-20

Internet Control Message Protocol (ICMP)! Required companion to IP. Provides feedback from the network.! ICMP: Used by IP to send error and control messages! ICMP uses IP to send its messages (Not UDP)! ICMP does not report errors on ICMP messages.! ICMP reports error only on the first fragment Datalink Header ICMP Header ICMP Data IP Header IP Data Datalink Data 13-21

ICMP Message Format IP Header Type of Message Error Code Checksum Parameters, if any Information 8b 8b 16b Var Var 13-22

ICMP: Message Types Type Message 0 Echo reply 3 Destination unreachable 4 Source quench 5 Redirect 8 Echo request 11 Time exceeded 12 Parameter unintelligible 13 Time-stamp request 14 Time-stamp reply 15 Information request 16 Information reply 17 Address mask request 18 Address mask reply 13-23

ICMP Messages! Source Quench: Please slow down! I just dropped one of your datagrams.! Time Exceeded: Time to live field in one of your packets became zero. or Reassembly timer expired at the destination.! Fragmentation Required: Datagram was longer than MTU and No Fragment bit was set.! Address Mask Request/Reply: What is the subnet mask on this net? Replied by Address mask agent 13-24

Summary! Hosts, networks, subnetwork, Internet! IP: header! Time to Live! IP Addresses, Class A, B, C, D, Private, Subnet Mask! Fragmentation! ARP, ICMP 13-25

Reading Assignment! Read Sections 18.1-18.4 of Stallings 7th edition 13-26

Homework! Submit answer to Exercise 18.5 from Stallings 7 th edition 13-27