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

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

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

IP : Internet Protocol

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

Network Layer: Internet Protocol

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

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

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

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

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Problems of IP. Unreliable connectionless service. Cannot acquire status information from routers and other hosts

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

Vorlesung Kommunikationsnetze

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

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

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

TSIN02 - Internetworking

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

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

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

Lecture 9: Internetworking

CIS 551 / TCOM 401 Computer and Network Security

Lecture 11: Fragmentation & Addressing. CSE 123: Computer Networks Stefan Savage

Introduction to Internetworking

(ICMP), RFC

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

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

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

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

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

Each ICMP message contains three fields that define its purpose and provide a checksum. They are TYPE, CODE, and CHECKSUM fields.

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

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

CH. 3 IP FORWARDING AND ROUTING

TSIN02 - Internetworking

Table of Contents 1 System Maintaining and Debugging Commands 1-1

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

Internet Control Message Protocol (ICMP)

IPv4. Christian Grothoff.

The Internetworking Problem. Internetworking. A Translation-based Solution

Network Layer (4): ICMP

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

ICMP (Internet Control Message Protocol)

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

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

Master Course Computer Networks IN2097

C14a: Internetworks and The Internet

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

ICS 451: Today's plan

Internetworking Part 2

Table of Contents 1 System Maintenance and Debugging Commands 1-1

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

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

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

Module 7 Internet And Internet Protocol Suite

ET4254 Communications and Networking 1

Router Architecture Overview

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

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

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

Configuring Routes on the ACE

Chapter 4 Network Layer

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

CHAPTER-2 IP CONCEPTS

Chapter 4: Network Layer

Contents. Ping, tracert, and system debugging commands 1 debugging 1 display debugging 2 ping 2 ping ipv6 5 tracert 7 tracert ipv6 9

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

Internetwork Protocols

ICS 351: Networking Protocols

Internet Networking recitation #2 IP Checksum, Fragmentation

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

CS 3516: Advanced Computer Networks

Internet Protocols (chapter 18)

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

Chapter 5 Network Layer

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 8

Network layer: Overview. Network Layer Functions

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

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

Network Layer (1) Networked Systems 3 Lecture 8

Internet Protocol (IP)

Using ICMP to Troubleshoot TCP/IP Networks

Introduction to TCP/IP networking

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

internet technologies and standards

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

SEN366 (SEN374) (Introduction to) Computer Networks

Communications Software. CSE 123b. CSE 123b. Spring Lecture 2: Internet architecture and. Internetworking. Stefan Savage

CS 3516: Computer Networks

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

Topics for This Week

Chapter 5 OSI Network Layer

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

User Datagram Protocol

Transcription:

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

Internet Protocol Runs on all hosts in the Internet and enables packets to be routed between systems Key protocol for building networks Kahn-Cerf Datagram delivery of packets Connectionless and based on routing protocols Well defined packet format Global addressing Means for identifying Internet hosts Fragmentation and reassembly Since packets can be of varying size Error reporting CS 640 2

An IP Internet Network of Networks Network 1 (Ethernet) H7 R3 H8 H1 H2 Network 2 (Ethernet) R1 H3 Network 4 (point-to-point) R2 H4 Network 3 (FDDI) H5 H6 CS 640 3

Protocol Stack IP is Common to All H1 H8 TCP R1 R2 R3 TCP IP IP IP IP IP ETH ETH FDDI FDDI PPP PPP ETH ETH CS 640 4

Service Model Connectionless (datagram-based) Best-effort delivery (unreliable service) packets are lost packets are delivered out of order duplicate copies of a packet are delivered packets can be delayed for a long time Datagram format 0 4 8 16 19 31 V ersion HLen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable) Data Pad (variable) CS 640 5

IPv4 Header Format 0 4 8 16 19 31 V ersion HLen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable) Data Pad (variable) CS 640 6

Various fields Hlen --- length of the header as multiple of 32-bits Length --- header+data as number of octets (bytes) Ident --- unique ID field for each packet Time To Live (TTL) --- an integer value that is decremented in each hop, and packets are discarded when TTL is 0 Offset --- if a packet gets fragmented, it is the position of this fragment relative to other fragments (note it is 13 bits only, why?) CS 640 7

Fragmentation and Reassembly Each network has some Maximum Transmission Unit (MTU) Largest datagram that a network can carry in a frame Strategy fragment when necessary (MTU < Datagram) try to avoid fragmentation at source host Due to overhead of reassembly re-fragmentation is possible fragments are self-contained datagrams delay reassembly until destination host Keep this functionality out of the network do not recover from lost fragments End hosts try to reassemble fragmented packets if a fragment is lost End hosts are encouraged to do MTU discovery CS 640 8

Example H1 R1 R2 R3 H8 ETH IP (1400) FDDI IP (1400) PPP IP (512) PPP IP (512) PPP IP (376) ETH IP (512) ETH IP (512) ETH IP (376) CS 640 9

Start of header Ident = x 1 Offset = 0 Start of header Ident = x 0 Offset = 0 Rest of header 1400 data bytes Rest of header 512 data bytes Start of header Ident = x 1 Offset = 512 Rest of header 512 data bytes Start of header Ident = x 0 Offset = 1024 Rest of header 376 data bytes CS 640 10

IPv4 Global Addresses Properties globally unique hierarchical: network + host Dot Notation 10.3.2.4 128.96.33.81 192.12.69.77 Classes A, B, C Class D: Multicast Class E: reserved A: B: C: 0 1 0 1 1 0 7 24 Network Network Host 14 16 Network Host 21 8 Originally, address blocks had classes --- A, B, C, D, E Host CS 640 11

Datagram Forwarding Every datagram contains destination s address The network part of an IP address uniquely identifies a single physical network If directly connected to destination network, then forward to host If not directly connected to destination network, then forward to some router Forwarding table maps network number into next hop Mapping is based on routing algorithm Each host has a default router Each router maintains a forwarding table CS 640 12

Internet Control Message Protocol (ICMP) Echo (ping) Redirect (from router to source host) Destination unreachable (protocol, port, or host) TTL exceeded (so datagrams don t cycle forever) Checksum failed Reassembly failed Cannot fragment CS 640 13

ICMP Uses IP but is a separate protocol in the network layer ICMP HEADER IP HEADER IP HEADER PROTOCOL = 1 TYPE CODE CHECKSUM IP DATA REMAINDER OF ICMP MESSAGE (FORMAT IS TYPE SPECIFIC) CS 640 14

Echo and Echo Reply TYPE CODE CHECKSUM IDENTIFIER SEQUENCE # DATA. TYPE: 8 = ECHO, 0 = ECHO REPLY CODE; CODE = 0 IDENTIFIER An identifier to aid in matching echoes and replies SEQUENCE # Same use as for IDENTIFIER UNIX ping uses echo/echo reply CS 640 15

Ping Example C:\WINDOWS\Desktop>ping www.soi.wide.ad.jp Pinging asari.soi.wide.ad.jp [203.178.137.88] with 32 bytes of data: Reply from 203.178.137.88: bytes=32 time=253ms TTL=240 Reply from 203.178.137.88: bytes=32 time=231ms TTL=240 Reply from 203.178.137.88: bytes=32 time=225ms TTL=240 Reply from 203.178.137.88: bytes=32 time=214ms TTL=240 Ping statistics for 203.178.137.88: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 214ms, Maximum = 253ms, Average = 230ms CS 640 16

Redirect when no route to Destination TYPE CODE CHECKSUM NEW ROUTER ADDRESS IP HEADER + 64 bits data from original DG TYPE = 5 CODE = 0 = Network redirect 1 = Host redirect 2 = Network redirect for specific TOS 3 = Host redirect for specific TOS CS 640 17

Destination Unreachable TYPE CODE CHECKSUM UNUSED IP HEADER + 64 bits data from original DG TYPE = 3 CODE 0 = Net unreachable 1 = Host unreachable 2= Protocol unreachable 3 = Port unreachable 4 = Fragmentation needed but DF set 5 = Source route failed CS 640 18

Time Exceeded TYPE CODE CHECKSUM UNUSED IP HEADER + 64 bits data from original DG TYPE = 11 CODE 0 = Time to live exceeded in transit 1 = Fragment reassembly time exceeded CS 640 19

Source Quench TYPE CODE CHECKSUM UNUSED IP HEADER + 64 bits data from original DG TYPE = 4; CODE = 0 Indicates that a router has dropped the original DG or may indicate that a router is approaching its capacity limit. Correct behavior for source host is not defined. CS 640 20

Traceroute UNIX utility - displays router used to get to a specified Internet Host Operation router sends ICMP Time Exceeded message to source if TTL is decremented to 0 if TTL starts at 5, source host will receive Time Exceeded message from router that is 5 hopes away Traceroute sends a series of probes with different TTL values and records the source address of the ICMP Time Exceeded message for each Probes are formatted to that the destination host will send an ICMP Port Unreachable message CS 640 21

TraceRoute Example C:\windows\desktop> tracert www.soi.wide.ad.jp Tracing route to asari.soi.wide.ad.jp [203.178.137.88] over a maximum of 30 hops: 1 19 ms 27 ms 23 ms 208.166.201.1 2 17 ms 13 ms 14 ms 204.189.71.9 3 25 ms 29 ms 29 ms aar1-serial4-1-0-0.minneapolismpn.cw.net [208.174.7.5] 4 24 ms 27 ms 24 ms acr1.minneapolismpn.cw.net [208.174.2.61] 5 26 ms 22 ms 23 ms acr2-loopback.chicagochd.cw.net [208.172.2.62] 6 29 ms 29 ms 27 ms cand-w-private-peering.chicagochd.cw.net [208.172.1.222] 7 28 ms 24 ms 28 ms 0.so-5-2-0.XL2.CHI2.ALTER.NET [152.63.68.6] 8 26 ms 27 ms 28 ms 0.so-7-0-0.XR2.CHI2.ALTER.NET [152.63.67.134] 9 25 ms 24 ms 26 ms 292.at-2-0-0.TR2.CHI4.ALTER.NET [152.63.64.234] 10 73 ms 74 ms 73 ms 106.ATM7-0.TR2.LAX2.ALTER.NET [146.188.136.142] 11 74 ms 76 ms 76 ms 198.ATM7-0.XR2.LAX4.ALTER.NET [146.188.249.5] 12 73 ms 75 ms 77 ms 192.ATM5-0.GW9.LAX4.ALTER.NET [152.63.115.77] 13 80 ms 73 ms 76 ms kdd-gw.customer.alter.net [157.130.226.14] 14 84 ms 84 ms 91 ms 202.239.170.236 15 97 ms 81 ms 86 ms cisco1-eth-2-0.losangeles.wide.ad.jp [209.137.144.98] 16 174 ms 174 ms 178 ms cisco5.otemachi.wide.ad.jp [203.178.136.238] 17 201 ms 196 ms 194 ms cisco2.otemachi.wide.ad.jp [203.178.137.34] 18 183 ms 182 ms 196 ms foundry2.otemachi.wide.ad.jp [203.178.140.216] 19 183 ms 185 ms 178 ms gsr1.fujisawa.wide.ad.jp [203.178.138.252] 20 213 ms 205 ms 201 ms asari.soi.wide.ad.jp [203.178.137.88] Trace complete. CS 640 22

Other interesting tools - ping: estimate RTT between src-dest pairs - ifconfig: check status of and configure different interfaces - route (but you have to have route access) CS 640 23