Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

Similar documents
CS 457 Lecture 11 More IP Networking. Fall 2011

Network Layer (4): ICMP

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

ICS 451: Today's plan

Internet Control Message Protocol (ICMP)

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

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

Master Course Computer Networks IN2097

Computer Networking Introduction

Network Layer: Internet Protocol

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

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

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

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

CSEP 561 Internetworking. David Wetherall

Network layer: Overview. Network Layer Functions

Router Architecture Overview

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

Different Layers Lecture 20

Chapter 4: Network Layer

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

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

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

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

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

Module 7 Internet And Internet Protocol Suite

ICMP (Internet Control Message Protocol)

ICS 351: Networking Protocols

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

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

The Internetworking Problem. Internetworking. A Translation-based Solution

Network Layer: DHCP, ICMP, NAT, IPv6

Internet Protocols (chapter 18)

MESSAGES error-reporting messages and query messages. problems processes IP packet specific information

Cisco CCNA Basic IP Routing Part I

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

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

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

internet technologies and standards

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

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

Auxiliary Protocols. Internet Layer. Address Resolution Protocol. Delivery of IP Packets

KillTest ᦝ䬺 䬽䭶䭱䮱䮍䭪䎃䎃䎃ᦝ䬺 䬽䭼䯃䮚䮀 㗴 㓸 NZZV ]]] QORRZKYZ PV ٶ瀂䐘މ悹伥濴瀦濮瀃瀆ݕ 濴瀦

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

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

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

Introduction to Internetworking

SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

EEC-684/584 Computer Networks

(ICMP), RFC

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

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

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

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

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

Firewall Stateful Inspection of ICMP

Configuring Routes on the ACE

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

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

ECE 158A: Lecture 7. Fall 2015

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Configuring IP Services

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

IT 341: Introduction to System

ICMP (Internet Control Message Protocol)

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Address Translation. Map IP addresses into physical addresses destination host next hop router

Computer Networks. Course Reference Model. Topic. Error Handling with ICMP. ICMP Errors. Internet Control Message Protocol 12/2/2014.

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

Putting it all together

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

Supporting Protocols and Technologies in TCP/IP Suites

Computer Networks Security: intro. CS Computer Systems Security

Where we are in the Course

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

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

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

internet technologies and standards

Using ICMP to Troubleshoot TCP/IP Networks

IPv6. Copyright 2017 NTT corp. All Rights Reserved. 1

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

This is a sample Lab report from ECE 461 from previous years. L A B 6

TDTS06: computer Networks

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

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

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

Internet Technology 3/23/2016

Internet Control Message Protocol

Outline. CS5984 Mobile Computing. Host Mobility Problem 1/2. Host Mobility Problem 2/2. Host Mobility Problem Solutions. Network Layer Solutions Model

Chapter 4 Network Layer

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

Chapter 4: network layer

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

Outline. CS6504 Mobile Computing. Host Mobility Problem 1/2. Host Mobility Problem 2/2. Dr. Ayman Abdel-Hamid. Mobile IPv4.

1. Which OSI layers offers reliable, connection-oriented data communication services?

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

Transcription:

SC/CSE 3213 Winter 2013 L9: Control Protocols Sebastian Magierowski York University 1 Outline ICMP ARP DHCP NAT (not a control protocol) 2 1

Control Protocols IP is used to transfer data Network layer also contains protocols to help keep network operating Or at least in some control of its behaviour 3 ICMP Internet Control Message Protocol Routers closely monitor the operation of their links If something goes wrong they inform sender using ICMP Encapsulated in IP About a dozen (non-deprecated) ICMP types www.iana.org/assignments/icmp-parameters A few of the important ones 4 2

Some ICMP Examples Type 3: Destination Unreachable Sent (back to source) when router cannot locate the destination Or if network allowing only small packets blocks delivery Type 5: Redirect Packet seems to be routed incorrectly Sender should update to a better route Type 12: Parameter Problem An illegal value detected in IP header A bug in router/host packet generation software Type 11: Time Exceeded When IP packet s TTL field (time-to-live) drops to zero Packets are looping Counter values set too low 5 Traceroute Find route from local host to a remote host Time-to-Live (TTL) IP packets have TTL field that specifies maximum # hops traversed before packet discarded Each router decrements TTL by 1 When TTL reaches 0 packet is discarded Traceroute Send UDP to remote host with IP TTL=1 First router will reply ICMP Time Exceeded Msg Send UDP to remote host with IP TTL=2, Each step reveals next router in path to remote host CSE 3213, W13 L4: App Layer & IP Utilities 6 3

Traceroute Example: Home to CSE Home Telus ISP Cogent ISP York CSE CSE 3213, W13 L4: App Layer & IP Utilities 7 More ICMP Examples Type 0 & 8: Echo & Echo Reply Used to see if a destination is alive, echo prompts echo reply Employed by ping utility Type 13 & 14: Timestamp Request & Timestamp Reply Like echo but arrival time of message and departure time of reply recorded Useful for network performance measurement 8 4

Physical Addressing Internet uses IP addresses to direct messages And encapsulates a packet in a frame a frame with a PHYSICAL ADDRESS But how do we know physical address of destination??? Physical addresses don t know anything about IP For example 192.32.65.7 wants to send to 192.32.65.5 IP1 = 192.32.65.7 IP3 = 192.32.63.3 E1 Ethernet switch Router E5 Host 1 E3 E4 Host 3 Host 2 192.32.65.1 192.32.63.1 Host 4 CS Network EE Network E2 192.32.65.0/24 192.32.63.0/24 E6 CSE 3213, W13 IP2 = 192.32.65.5 L9: Control Protocols IP4 = 192.32.63.8 9 Map File? For example 192.32.65.7 wants to send to 192.32.65.5 You can maintain a file that maps all IP addresses to all physical addresses in the network Very complicated to maintain Come up with a protocol to automate the process Address Resolution Protocol (ARP) IP1 = 192.32.65.7 IP3 = 192.32.63.3 E1 Ethernet switch Router E5 Host 1 E3 E4 Host 3 Host 2 192.32.65.1 192.32.63.1 Host 4 CS Network EE Network E2 192.32.65.0/24 192.32.63.0/24 E6 CSE 3213, W13 IP2 = 192.32.65.5 L9: Control Protocols IP4 = 192.32.63.810 5

Broadcast frame asking who owns destination IP address Payload contains destination addr.: 192.32.65.5 Each host on LAN checks if it has the requested address Only Host 2 responds Thus Host 1 learns 192.32.65.5 corresponds to E2 (put in ARP cache) From broadcast E2 learns what IP address E1 corresponds to ARP handles this ARP Layer 2/3 protocol, implemented in device drivers Host 1 IP1 = 192.32.65.7 E1 Ethernet switch E3 Router E4 IP3 = 192.32.63.3 E5 Host 3 Host 2 192.32.65.1 192.32.63.1 Host 4 CS Network EE Network E2 192.32.65.0/24 192.32.63.0/24 E6 CSE 3213, W13 IP2 = 192.32.65.5 L9: Control Protocols IP4 = 192.32.63.811 ARP Updates To keep fresh, ARP caches should time out every few minutes When a new machine is configured (obtains IP address) it should broadcast an ARP message looking for itself This allows the remaining elements in the network to cache its IP/ physical address relationship 12 6

ARP Internetworking What about sending to another LAN? H1 to H4 H1 notices H4 IP address not in same network H1 knows it must sent the packet to router Router s IP address is automatically known lowest address in LAN H1 uses ARP broadcast to discover E3 And hence can send the frame to the router Router inspects IP and know which network to send the packet to Will employ ARP to get H4 s E6 Host 1 IP1 = 192.32.65.7 E1 Ethernet switch E3 Router E4 IP3 = 192.32.63.3 E5 Host 3 Host 2 192.32.65.1 192.32.63.1 Host 4 CS Network EE Network E2 192.32.65.0/24 192.32.63.0/24 E6 CSE 3213, W13 IP2 = 192.32.65.5 L9: Control Protocols IP4 = 192.32.63.813 DHCP Dynamic Host Control Protocol Application Layer, runs over UDP How do computers acquire an IP address? New computer launches DHCP DISCOVER message DHCP server (a must on every network) will receive this message (or router is configured to forward DHCP messages to known server) DHCP server responds with DHCP OFFER message (containing assigned IP address) DHCP DISCOVER packet contains senders Ethernet address Allows DHCP server to know destination of OFFER message Hosts periodically ask for DHCP renewal to maintain address A means of not running out of IP addresses DHCP also configures: mask, default gateway, DNS server 14 7

NAT Network Address Translation When you have a limited amount of IP addresses For example ISP might have 65,536 addresses Easily handles 40,000 customers (with room to grow) But what if each customer has on average 4 devices? Solution (until we get more addresses): Let each customer in LAN have unique IP address But anything leaving LAN appears as one constant IP address Three ranges of private IP addresses are available 10.0.0.0 10.255.255.255/8 (16,777,216 hosts) 172.16.0.0 172.31.255.255/12 (1,048,576 hosts) 192.168.0.0 192.168.255.255/16 (65,536 hosts) 15 NAT @ Work Needs TCP or UDP User sends with say 10.X.Y.Z from TCP port ABCD NAT makes the association: QRST: 10.X.Y.Z // ABCD QRST just some TCP port And sends out A TCP segment from port: QRST Encapsulates in IP packet with the LAN s one address, say: 198.60.42.12 Any response to 198.60.42.12 at port QRST gets mapped back to: 10.X.Y.Z at port ABCD IP = 10.0.0.1 port = 5544 Customer router and LAN Packet before translation Packet after translation IP = 198.60.42.12 port = 3344 NAT box/firewall Boundary of customer premises 16 ISP router 8