Goals of Today s Lecture. Transla'ng Addresses. Separa'ng Names and IP Addresses. Separa'ng IP and MAC Addresses

Similar documents
Transla'ng Addresses. Goals of Today s Lecture

CS 457 Lecture 11 More IP Networking. Fall 2011

Missing pieces + Putting the pieces together

Address and Switching in the Link Layer

Light at the end of the tunnel Final Lecture: Course Overview

The Link Layer and LANs: Ethernet and Swiches

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

Putting it all together

Agenda. Forwarding (after a little more addressing) Follow-up from last time. Dealing with Address Scarcity. Sharing a Block of Addresses

Lecture 16: Router Design

Translating Addresses

Missing pieces + Putting the pieces together

Computer Networking Introduction

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

Page 1. CS162 Operating Systems and Systems Programming Lecture 22. Networking III. Automatic Repeat Request

Lecture (08) Internetwork Layer II

Link layer: introduction

L3 Addressing and data plane. Benjamin Baron

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

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

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

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

IP/MAC Address Translation

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

Addressing and Switching in the Link Layer

Link State Rou.ng Reading: Sec.ons 4.2 and 4.3.4

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

Lecture (03) Internet Protocol tcp/ip> OSI>

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

Network layer: Overview. Network Layer Functions

Networking Potpourri: Plug-n-Play, Next Gen

Addressing protocols. TELE3118 lecture notes Copyright by Tim Moors Aug-09. Copyright Aug-09, Tim Moors

ECE 4450:427/527 - Computer Networks Spring 2017

9/8/2016. Network Architecture and Protocols. Outline. Layering: A Modular Approach. Layer Encapsulation. IP Layer. IP Layer

Master Course Computer Networks IN2097

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Basic Internetworking (IP)

RSC Part II: Network Layer 3. IP addressing (2nd part)

Broadcast Links, Addressing and Media Access Control. Link Layer B. Link and Physical Layers. MAC Addresses

Business Data Communications and Networking

EEC-684/584 Computer Networks

DHCP & NAT. Module : Computer Networks Lecturer : Lucy White Office : 324

internet technologies and standards

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

Link State Rou.ng Reading: Sec.ons 4.2 and 4.3.4

Network Layer PREPARED BY AHMED ABDEL-RAOUF

ECE 158A: Lecture 7. Fall 2015

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

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Lecture 11: Middleboxes and NAT (Duct tape for IPv4)

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. IP Addressing. Jasleen Kaur. Fall 2016

Link Layer: CSMA/CD, MAC addresses, ARP

Network Access Transla0on - NAT

EITF25 Internet- - Techniques and Applica8ons Stefan Höst. L9 Applica8on layer

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

Network Administra0on

Lab DHCP Client Setup

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

CS 3516: Advanced Computer Networks

CMSC 332 Computer Networks Network Layer

Lecture 20: Link Layer

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

CSC 4900 Computer Networks: Network Layer

CS 356: Computer Network Architectures. Lecture 15: DHCP, NAT, and IPv6. [PD] chapter 3.2.7, 3.2.9, 4.1.3, 4.3.3

Network Layer: Internet Protocol

CSE/EE 461: Introduction to Computer Communications Networks Autumn Module 9

CS 3516: Advanced Computer Networks

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. **Slides are attributed to J. F. Kurose

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Chapter 4: Network Layer

How to deal with large numbers (millions) of entities in a system? IP devices in the internet (0.5 billion) Users in P2P network (millions)

Floodless in SEATTLE: A Scalable Ethernet Architecture for Large Enterprises

CSC 401 Data and Computer Communications Networks

The Network Layer Forwarding Tables and Switching Fabric

Computer System Design and Administration

Network Layer: DHCP, ICMP, NAT, IPv6

Different Layers Lecture 20

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

by Douglas Comer, Purdue University

Topic. How rou=ng protocols work with IP. The Host/Router dis=nc=on. I don t! I route. CSE 461 University of Washington 1

Internet Technology 4/29/2013

Lab - Connect to a Router for the First Time

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

Internet Protocol (IP) Computer Networking. What is an Internetwork? Designing an Internetwork. Lecture 8 IP Addressing and Forwarding

IP Addressing and Forwarding

DHCPv6 Overview 1. DHCPv6 Server Configuration 1

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

ARP Address Resolu,on Protocol

Chapter 5: The Data Link Layer. Chapter 5 Link Layer and LANs. Ethernet. Link Layer. Star topology. Ethernet Frame Structure.

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

Network Layer: Control/data plane, addressing, routers

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

Network layer overview

Router Architecture Overview

Top-Down Network Design

CSC 4900 Computer Networks: Link Layer (2)

Configuring the Cisco IOS DHCP Relay Agent

1 Connectionless Routing

INTERNET ARCHITECTURE & PROTOCOLS

Guide to TCP/IP, Third Edition. Chapter 8: The Dynamic Host Configuration Protocol

Transcription:

Goals of Today s Lecture Transla'ng ddresses Three different kinds of addresses Host names (e.g., www.cnn.com) IP addresses (e.g., 64.236.16.20) MC addresses (e.g., 00-15- C5-49- 04-9) Protocols for transla'ng between addresses Domain Name System (DNS) Dynamic Host Configura'on Protocol (DHCP) ddress esolu'on Protocol (P) Two main topics Decentralized management of the name space oot- strapping an end host that awaches to the net 1 2 Separa'ng Names and IP ddresses Names are easier (for us!) to remember www.cnn.com vs. 64.236.16.20 IP addresses can change underneath Move www.cnn.com to 173.15.201.39 E.g., renumbering when changing providers Name could map to mul'ple IP addresses www.cnn.com to mul'ple replicas of the Web site Map to different addresses in different places ddress of a nearby copy of the Web site E.g., to reduce latency, or return different content Mul'ple names for the same address E.g., aliases like ee.mit.edu and cs.mit.edu 3 Separa'ng IP and MC ddresses LNs are designed for arbitrary network protocols Not just for IP (e.g., IPX, ppletalk, X.25, ) Though now IP is the main game in town Different LNs may have different addressing schemes Though now Ethernet address is the main game in town host may move to a new loca'on So, cannot simply assign a sta'c IP address Since IP addresses depend on host s posi'on in topology Instead, must reconfigure the adapter To assign it an IP address based on its current loca'on Must iden'fy the adapter during bootstrap process Need to talk to the adapter to assign it an IP address 4 1

Three Kinds of Iden'fiers Host name (e.g., www.cnn.com) Mnemonic name appreciated by humans Provides liwle (if any) informa'on about loca'on Hierarchical, variable # of alpha- numeric characters IP address (e.g., 64.236.16.20) Numerical address appreciated by routers elated to host s current loca'on in the topology Hierarchical name space of 32 bits MC address (e.g., 00-15- C5-49- 04-9) Numerical address appreciated within local area network Unique, hard- coded in the adapter when it is built Flat name space of 48 bits 5 Three Hierarchical ssignment Processes Host name: www.umich.edu Domain: registrar for each top- level domain (e.g.,.edu) Host name: local administrator assigns to each host IP addresses: 141.213.4.4 Prefixes: ICNN, regional Internet registries, and ISPs Hosts: sta'c configura'on, or dynamic using DHCP MC addresses: 00-15- C5-49- 04-9 locks: assigned to vendors by the IEEE dapters: assigned by the vendor from its block 6 Mapping etween Iden'fiers Domain Name System (DNS) Given a host name, provide the IP address Given an IP address, provide the host name Dynamic Host Configura'on Protocol (DHCP) Given a MC address, assign a unique IP address and tell host other stuff about the Local rea Network To automate the boot- strapping process ddress esolu'on Protocol (P) Given an IP address, provide the MC address To enable communica'on within the Local rea Network ootstrapping Problem Host doesn t have an IP address yet So, host doesn t know what source address to use Host doesn t know who to ask for an IP address So, host doesn t know what des'na'on addr to use Solu'on: shout to discover a server who can help roadcast a DHCP server- discovery message Server sends a DHCP offer offering an address host! host!...! host! 7 DHCP server! 8 2

roadcas'ng roadcas'ng: sending to everyone Special des'na'on address: FF- FF- FF- FF- FF- FF ll adapters on the LN receive the packet Delivering a broadcast packet Easy on a shared media Like shou'ng in a room everyone can hear you esponse from the DHCP Server DHCP offer message from the server Configura'on parameters (proposed IP address, mask, gateway router, DNS server,...) Lease 'me (the 'me the informa'on remains valid) Mul'ple servers may respond Mul'ple servers on the same broadcast media Each may respond with an offer The client can decide which offer to accept ccep'ng one of the offers Client sends a DHCP request echoing the parameters The DHCP server responds with an CK to confirm and the other servers see they were not chosen 9 10 Dynamic Host Configura'on Protocol Deciding What IP ddress to Offer arriving client! DHCP discover! (broadcast)! DHCP offer! DHCP request! (broadcast)! DHCP CK! DHCP server! 233.1.2.5! 11 Server as centralized configura'on database ll parameters are sta'cally configured in the server E.g., a dedicated IP address for each MC address voids complexity of configuring hosts directly while s'll having a permanent IP address per host Or, dynamic assignment of IP addresses Server maintains a pool of available addresses and assigns them to hosts on demand Leads to less configura'on complexity and more efficient use of the pool of addresses Though, it is harder to track the same host over 'me 12 3

Son State: efresh or Forget Why is a lease 'me necessary? Client can release the IP address (DHCP ELESE) E.g., ipconfig /release at the DOS prompt E.g., clean shutdown of the computer ut, the host might not release the address E.g., the host crashes (blue screen of death!) E.g., buggy client sonware nd you don t want the address to be allocated forever Performance trade- offs Short lease 'me: returns inac've addresses quickly Long lease 'me: avoids overhead of frequent renewals So, Now the Host Knows Things IP address Mask Gateway router DNS server nd can send packets to other IP addresses ut, how to learn MC address of the des'na'on? 13 14 Sending Packets Over a Link IP packet! 1.2.3.53 1.2.3.156 1.2.3.53 1.2.3.156 host! host!...! Web! router! dapters only understand MC addresses Translate the des'na'on IP address to MC address Encapsulate the IP packet inside a link- level frame ddress esolu'on Protocol Table Every node maintains an P table (IP address, MC address) pair Consult the table when sending a packet Map des'na'on IP address to des'na'on MC address Encapsulate and transmit the data packet ut, what if the IP address is not in the table? Sender broadcasts: Who has IP address 1.2.3.156? eceiver responds: MC address 58-23- D7- F- 20-0 Sender caches the result in its P table No need for network administrator to get involved 15 16 4

Example: Sending a Packet to How does host send an IP packet to (www.cnn.com)? asic Steps 1. Host must learn the IP address of via DNS 2. Host uses gateway to reach external hosts 3. Host sends the frame to s MC address 4. outer forwards IP packet to outgoing interface 5. outer learns s MC address and forwards frame www.cnn.com sends packet to, and sends packet to! 17 www.cnn.com 18 Host Learns the IP ddress of Host does a DNS query to learn s address Suppose gethostbyname() returns 222.222.222.222 Host constructs an IP packet to send to Source 111.111.111.111, dest 222.222.222.222 Host Learns the IP ddress of From : 111.111.111.111 To : 222.222.222.222 From : 74-29- 9C- E8- FF- 55 To gateway:???? 19 20 5

Host Decides to Send Through Host has a gateway router Used to reach dests outside of 111.111.111.0/24 ddress 111.111.111.110 for learned via DHCP ut, what is the MC address of the gateway? Host Sends Packet Through Host learns the MC address of s interface P request: broadcast request for 111.111.111.110 P response: responds with E6- E9-00- 17- - 4 Host encapsulates the packet and sends to 21 22 Host Sends Packet Through From : 111.111.111.111 To : 222.222.222.222 From : 74-29- 9C- E8- FF- 55 To : E6- E9-00- 17- - 4 Decides how to Forward Packet outer s adapter receives the packet extracts the IP packet from the Ethernet frame sees the IP packet is des'ned to 222.222.222.222 outer consults its forwarding table Packet matches 222.222.222.0/24 via other adapter 23 24 6

outer Wants to Forward Packet From : 111.111.111.111 To : 222.222.222.222 From : 1-23- F9- CD- 06-9 To :??? Sends Packet to outer s learns the MC address of host P request: broadcast request for 222.222.222.222 P response: responds with 49- D- D2- C7-56- 2 outer encapsulates the packet and sends to 25 26 outer Wants to Forward Packet From : 111.111.111.111 To : 222.222.222.222 From : 1-23- F9- CD- 06-9 To : 49- D- D2- C7-56- 2 Conclusion ootstrapping an end host Dynamic Host Configura'on Protocol (DHCP) ddress esolu'on Protocol (P) 27 28 7