Lecture 8: Internet Control Protocols Reading: Section 4.1 ? CMSC 23300/33300 Computer Networks

Slides:



Advertisements
Similar presentations
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
Advertisements

Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5.
Copyright 2009 Kenneth M. Chipps Ph.D. Host Addressing Last Update
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
Chapter 5 The Network Layer.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Chapter 8 Administering TCP/IP.
CSCI 4550/8556 Computer Networks Comer, Chapter 19: Binding Protocol Addresses (ARP)
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Subnetting.
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
1 Internet Control Protocols Reading: Section 4.1 COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching Assistant:
Link-State Routing Reading: Sections 4.2 and COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
1 Version 3.0 Module 9 TCP/IP Protocol and IP Addressing.
16 – CSMA/CD - ARP Network Layer4-1. 5: DataLink Layer5-2 CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
1 Ethernet and Internet Control Protocols EE 122: Intro to Communication Networks Fall 2010 (MW 4-5:30 in 101 Barker) Scott Shenker TAs: Sameer Agarwal,
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
Network Layer Moving datagrams. How do it know? Tom-Tom.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Bootstrap and Autoconfiguration (DHCP)
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
WXES2106 Network Technology Semester /2005 Chapter 4 TCP/IP CCNA1: Module 9, 10.3 and 11.
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 26 Omar Meqdadi Department of Computer Science and Software Engineering.
Network LayerII-1 RSC Part II: Network Layer 4. IP in operation Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
Common Devices Used In Computer Networks
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
Chapter Three Network Protocols By JD McGuire ARP Address Resolution Protocol Address Resolution Protocol The core protocol in the TCP/IP suite that.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
Bootstrap and Autoconfiguration Chapter 23. Introduction Each computer attached to a TCP/IP internet needs to know: –its IP address –the address of a.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
Missing pieces + Putting the pieces together CS 168, Fall 2014 Sylvia Ratnasamy Material thanks to Ion Stoica, Scott Shenker, Jennifer Rexford, Nick McKeown,
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Networks and Protocols CE Week 3a. DHCP, ARP, DNS, TCP/UDP.
Don Montgomery, CSE 4344, School of Engineering, Southern Methodist UniversityChapter 4, slide 1 routing at the network layer, related topics 1. IP addressing,
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
Address Translation Outline Datalink layer intro ARP RARP DHCP.
5: DataLink Layer5-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: interne t interface DNS server IP:
CSEN 404 Data Link Layer Amr El Mougy Lamia AlBadrawy.
IP - Internet Protocol No. 1  Seattle Pacific University IP: The Internet Protocol Kevin Bolding Electrical Engineering Seattle Pacific University.
4: DataLink Layer1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
CPSC 441: Link Layer1 Link Layer Addressing Slides originally from Carey Williamson Notes derived from “ Computer Networking: A Top Down Approach”, by.
Introduction to Networks
Scaling the Network: Subnetting and Protocols
Address Resolution Protocol (ARP)
MAC Addresses and ARP 32-bit IP address:
BOOTP and DHCP Objectives
Net 431 D: ADVANCED COMPUTER NETWORKS
Address Resolution Protocol (ARP)
CS 457 – Lecture 10 Internetworking and IP
Introduction to Networks
Wide Area Networks and Internet CT1403
CS 457 – Lecture 11 More IP Networking
CS4470 Computer Networking Protocols
Ch 17 - Binding Protocol Addresses
Presentation transcript:

Lecture 8: Internet Control Protocols Reading: Section 4.1 ? CMSC 23300/33300 Computer Networks

2 Goals of Today’s Lecture l Bootstrapping an end host u Learning its own configuration parameters (DHCP) u Learning the link-layer addresses of other nodes (ARP) l IP routers u Line cards, switching fabric, and route processor u Error reporting and monitoring (with ICMP)

3 Thus Far in the Class HTTP TCP IP Ethernet interface HTTP TCP IP Ethernet interface IP Ethernet interface SONET interface SONET interface host router HTTP message TCP segment IP packet Ethernet interface

4 Thus Far in the Class… l Application protocols u Socket abstraction u HyperText Transfer Protocol, File Transfer Protocol l Transport services built on IP u TCP: reliable byte stream with congestion control u UDP: unreliable message delivery l Name/address translation u DNS: mapping host names to/from IP addresses l Internet Protocol (IP) u Best-effort packet delivery service u IP addresses and IP prefixes u Packet forwarding based on longest-prefix match

5 How To Bootstrap an End Host? l What IP address the host should use? l What local Domain Name System server to use? l How to send packets to remote destinations? l How to ensure incoming packets arrive? host DNS... host DNS... router / / ??? router

6 Avoiding Manual Configuration l Dynamic Host Configuration Protocol (DHCP) u End host learns how to send packets u Learn IP address, DNS servers, and gateway l Address Resolution Protocol (ARP) u Others learn how to send packets to the end host u Learn mapping between IP address and MAC address host DNS... host DNS... router / / ??? router

7 Key Ideas in Both Protocols l Broadcasting: when in doubt, shout! u Broadcast query to all hosts in the local area network u … when you don’t know how to identify the right one l Caching: remember the past for a while u Store the information you learn to reduce overhead u Remember your own address & other host’s addresses l Soft state: eventually forget the past u Associate a time-to-live field with the information u … and either refresh or discard the information u Key for robustness in the face of unpredictable change

8 Need Yet Another Kind of Identity l LANs are designed for arbitrary network protocols u Not just for IP and the Internet l Using IP address would require reconfiguration u Every time the adapter was moved or powered up l Broadcasting all data to all adapters is expensive u Requires every host on the LAN to inspect each packet Motivates separate Medium Access Control (MAC) addresses

9 MAC Address vs. IP Address l MAC addresses u Hard-coded in read-only memory when adaptor is built u Like a social security number u Flat name space of 48 bits (e.g., 00-0E-9B-6E-49-76) u Portable, and can stay the same as the host moves u Used to get packet between interfaces on same network l IP addresses u Configured, or learned dynamically u Like a postal mailing address u Hierarchical name space of 32 bits (e.g., ) u Not portable, & depends on where the host is attached u Used to get a packet to destination IP subnet

10 MAC Addresses on a LAN = adapter 1A-2F-BB AD D7-FA-20-B0 0C-C4-11-6F-E F7-2B LAN

11 Bootstrapping Problem l Host doesn’t have an IP address yet u So, host doesn’t know what source address to use l Host doesn’t know who to ask for an IP address u So, host doesn’t know what destination address to use l Solution: shout to discover a server who can help u Broadcast a server-discovery message u Server sends a reply offering an address host... DHCP server

12 Broadcasting l Broadcasting: sending to everyone u Special destination address: FF-FF-FF-FF-FF-FF u All adapters on the LAN receive the packet l Delivering a broadcast packet u Easy on a “shared media” u Like shouting in a room – everyone can hear you u E.g., Ethernet, wireless, and satellite links

13 Response from the DHCP Server l DHCP “offer message” from the server u Configuration parameters (proposed IP address, mask, gateway router, DNS server,...) u Lease time (the time the information remains valid) l Multiple servers may respond u Multiple servers on the same broadcast media u Each may respond with an offer u The client can decide which offer to accept l Accepting one of the offers u Client sends a DHCP request echoing the parameters u The DHCP server responds with an ACK to confirm u … and the other servers see they were not chosen

14 Dynamic Host Configuration Protocol arriving client DHCP server DHCP discover (broadcast) DHCP offer DHCP request DHCP ACK (broadcast)

15 Deciding What IP Address to Offer l Server as centralized configuration database u All parameters are statically configured in the server u E.g., a dedicated IP address for each MAC address u Avoids complexity of configuring hosts directly u … while still having a permanent IP address per host l Or, dynamic assignment of IP addresses u Server maintains a pool of available addresses u … and assigns them to hosts on demand u Leads to less configuration complexity u … and more efficient use of the pool of addresses u Though, it is harder to track the same host over time

16 Soft State: Refresh or Forget l Why is a lease time necessary? u Client can release the IP address (DHCP RELEASE) l E.g., “ipconfig /release” at the DOS prompt l E.g., clean shutdown of the computer u But, the host might not release the address l E.g., the host crashes (blue screen of death!) l E.g., buggy client software u & you don’t want the address to be allocated forever l Performance trade-offs u Short lease time: returns inactive addresses quickly u Long lease time: avoids overhead of frequent renewals

17 So, Now the Host Knows Things l IP address l Mask l Gateway router l DNS server l … l And can send packets to other IP addresses u But, how to learn the MAC address of the destination?

18 Sending Packets Over a Link l Adaptors only understand MAC addresses u Translate the destination IP address to MAC address u Encapsulate the IP packet inside a link-level frame host Web router IP packet

19 Address Resolution Protocol Table l Every node maintains an ARP table u (IP address, MAC address) pair l Consult the table when sending a packet u Map destination IP address to destination MAC address u Encapsulate and transmit the data packet l But, what if the IP address is not in the table? u Sender broadcasts: “Who has IP address ?” u Receiver responds: “MAC address D7-FA-20-B0” u Sender caches the result in its ARP table l No need for network administrator to get involved

20 Example: A Sending a Packet to B How does host A send an IP packet to host B? A R B A sends packet to R, and R sends packet to B.

21 Host A Decides to Send Through R l Host A constructs an IP packet to send to B u Source , destination l Host A has a gateway router R u Used to reach destinations outside of /24 u Address for R learned via DHCP A R B

22 Host A Sends Packet Through R l Host A learns the MAC address of R’s interface u ARP request: broadcast request for u ARP response: R responds with E6-E BB-4B l Host A encapsulates the packet and sends to R A R B

23 R Decides how to Forward Packet l Router R’s adaptor receives the packet u R extracts the IP packet from the Ethernet frame u R sees the IP packet is destined to l Router R consults its forwarding table u Packet matches /24 via other adaptor A R B

24 R Sends Packet to B l Router R’s learns the MAC address of host B u ARP request: broadcast request for u ARP response: B responds with 49-BD-D2-C7-56-2A l Router R encapsulates the packet and sends to B A R B

IP Routers

26 Inside a High-End Router Switching Fabric Processor Line card

27 Router Physical Layout Juniper T series Cisco Crossbar Linecards

28 Line Cards (Interface Cards, Adaptors) l Interfacing u Physical link u Switching fabric l Packet handling u Packet forwarding u Decrement time-to-live u Buffer management u Link scheduling u Packet filtering u Rate limiting u Packet marking u Measurement to/from link to/from switch lookup Receive Transmit

29 Switching Fabric l Deliver packet inside the router u From incoming interface to outgoing interface u A small network in and of itself l Must operate very quickly u Multiple packets going to same outgoing interface u Switch scheduling to match inputs to outputs l Implementation techniques u Bus, crossbar, interconnection network, … u Running at a faster speed (e.g., 2X) than links u Dividing variable-length packets into cells

30 Packet Switching R1 Link 1 Link 2 Link 3 Link 4 Link 1, ingressLink 1, egress Link 2, ingressLink 2, egress Link 3, ingressLink 3, egress Link 4, ingressLink 4, egress Choose Egress Choose Egress Choose Egress Choose Egress “4”

31 Router Processor l So-called “Loopback” interface u IP address of the CPU on the router l Control-plane software u Implementation of the routing protocols u Creation of forwarding table for the line cards l Interface to network administrators u Command-line interface for configuration u Transmission of measurement statistics l Handling of special data packets u Packets with IP options enabled u Packets with expired Time-To-Live field

32 Summary l Important control functions u Bootstrapping u Error reporting and monitoring l Internet control protocols u Dynamic Host Configuration Protocol (DHCP) u Address Resolution Protocol (ARP) u Internet Control Message Protocol (ICMP) [Lect. #2] l Components of an IP router u Line cards, switching fabric, and route processor l Next week: Middleboxes—Section 8.4