EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao

Slides:



Advertisements
Similar presentations
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
Advertisements

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
5: DataLink Layer5-1 Mac Addressing, Ethernet, and Interconnections.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
1 Ethernet EECS 489 Computer Networks Z. Morley Mao Wednesday Feb 21, 2007 Acknowledgement: Some slides taken.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
5: DataLink Layer5-1 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram to destination IP subnet r MAC (or LAN or.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on materials supplied by Dr. Louise Moser at UCSB.
EEC-484/584 Computer Networks Lecture 8 Wenbing Zhao
1 Last class r Random Access Protocols m Slotted Aloha m Aloha m CSMA/CD m “Taking Turns” Protocols r Link-Layer Addressing Today r Ethernet, Hubs and.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
EEC-484/584 Computer Networks Lecture 8 Wenbing Zhao
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:
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
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
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
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.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Part 4: Link Layer addressing Ethernet Computer Networking: A Top Down Approach 6 th edition Jim Kurose,
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
Chapter 5 Link Layer Link Layer5-1 Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Chapter5_2.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
Link Layer Fundamentals NWEN302 Computer Network Design.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer LANs.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer5-1.
CS 1652 Jack Lange University of Pittsburgh 1. 5: DataLink Layer5-2 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram.
EEC-484 Computer Networks Lecture 13 Wenbing Zhao 12/6/20151.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
5: DataLink Layer5-1 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r Multi-tier design provides.
Net5: ARP 協定 授課教師:雲林科技大學 張慶龍 老師. IP Address/Physical Address Static Mapping  IP broadcast address maps to Ethernet broadcast address  IP Multicast Address.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
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.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
5: DataLink Layer5-1 Link Layer: Introduction Some terminology: r hosts and routers are nodes r communication channels that connect adjacent nodes along.
CSEN 404 Data Link Layer Amr El Mougy Lamia AlBadrawy.
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
Chapter 3 Part 1 Switching and Bridging
Address Resolution Protocol (ARP)
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
University of Pittsburgh
ARP: Address Resolution Protocol
Mac Addressing, Ethernet, and Interconnections
Hubs Hubs are essentially physical-layer repeaters:
Address Resolution Protocol (ARP)
Introduction to Networks
EEC-484/584 Computer Networks
Connecting The Network Layer to Data Link Layer.
EEC-484/584 Computer Networks
Chapter 5 Data Link Layer – Hub, Switch
Link Layer 5.1 Introduction and services
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao Outline Reminder  EEC484 project due midnight  EEC584 2 nd project due midnight  Quiz#4: 5/2  Project presentation (oral exam) 5/4 and 5/9: I will review your project submission and contact you for the oral exam time ARP and DHCP Hubs and switches

EEC-484/584: Computer Networks 5-3 Ethernet/MAC Addresses Ethernet (or MAC or LAN or physical) address:  Function: get frame from one interface to another physically-connected interface (same network)  48 bit MAC address Burned in NIC ROM, also sometimes software settable 2/9/2016

EEC-484/584: Computer Networks 5-4 MAC Addresses Each adapter on Ethernet has unique MAC address Broadcast address = FF-FF-FF-FF-FF-FF = adapter 1A-2F-BB AD D7-FA-20-B0 0C-C4-11-6F-E F7-2B LAN (wired or wireless) 2/9/2016

EEC-484/584: Computer Networks 5-5 MAC Addresses MAC address allocation administered by IEEE Manufacturer buys portion of MAC address space (to assure uniqueness) 32-bit IP address:  network-layer address  used to get datagram to destination IP subnet MAC flat address ➜ portability  Can move LAN card from one LAN to another IP hierarchical address NOT portable  Address depends on IP subnet to which node is attached 2/9/2016

EEC-484/584: Computer Networks 5-6 ARP: Address Resolution Protocol Each IP node (host, router) on LAN has ARP table ARP table: IP/MAC address mappings for some LAN nodes  TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min) Question: how to determine MAC address of B knowing B’s IP address? 1A-2F-BB AD D7-FA-20-B0 0C-C4-11-6F-E F7-2B LAN /9/2016

EEC-484/584: Computer Networks 5-7 ARP Protocol: Same LAN A wants to send datagram to B, and B’s MAC address not in A’s ARP table. A broadcasts ARP query packet, containing B's IP address  Dest MAC address = FF- FF-FF-FF-FF-FF  All machines on LAN receive ARP query B receives ARP packet, replies to A with its (B's) MAC address  Frame sent to A’s MAC address (unicast) A caches (saves) IP-to-MAC address pair in its ARP table until information becomes old (times out)  Soft state: information that times out (goes away) unless refreshed ARP is “plug-and-play”:  Nodes create their ARP tables without intervention from net administrator 2/9/2016

EEC-484/584: Computer Networks 5-8 Addressing: Routing to Another LAN R 1A-23-F9-CD-06-9B E6-E BB-4B CC-49-DE-D0-AB-7D A C-E8-FF B2-2F-54-1A-0F B BD-D2-C7-56-2A Walkthrough: send datagram from A to B via R Assume A knows B’s IP address Two ARP tables in router R, one for each IP network 2/9/2016

EEC-484/584: Computer Networks 5-9 A creates IP datagram with source A, destination B A uses ARP to get R’s MAC address for A creates link-layer frame with R's MAC address as dest, frame contains A-to-B IP datagram A’s NIC sends frame R’s NIC receives frame R removes IP datagram from Ethernet frame, sees its destined to B R uses ARP to get B’s MAC address R creates frame containing A-to-B IP datagram sends to B R 1A-23-F9-CD-06-9B E6-E BB-4B CC-49-DE-D0-AB-7D A C-E8-FF B2-2F-54-1A-0F B BD-D2-C7-56-2A This is a really important example – make sure you understand! 2/9/2016

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao ARP – Exercise Node 1 wants to send a packet to node 4, what will be returned by ARP? Node 1 wants to send a packet to node 2, what will be returned by ARP?

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao RARP – Reverse Address Resolution Protocol RARP - Allows a newly-booted diskless-workstation (e.g., X terminal) to broadcast its Ethernet address and ask for its IP address  RARP server responds to a RARP request with the assigned IP address 32-bit Internet address 48-bit Ethernet address ARP RARP

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao Limitations of RARP RARP uses a link-layer broadcast, RARP requests are not forwarded by routers, therefore, an RARP server must be present on every network The only thing returned by the RARP server is the IP address

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao BOOTP – Bootstrap Protocol BOOTP – uses UDP  A client broadcasts to  The source IP address is set to if client does not know its own IP address yet  Port number: 67 for server, 68 for client BOOTP drawbacks  Requires manual configuration of tables mapping IP address to Ethernet address at the BOOTP server Replaced by DHCP

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao Dynamic Host Configuration Protocol Allow host to dynamically obtain its IP address from network server when it joins network  IP address assignment is lease-based (to cope with client failure, also enables reuse of addresses)  Can renew its lease on address in use DHCP overview (UDP is used for communication)  Host broadcasts “DHCP discover” msg  DHCP server responds with “DHCP offer” msg  Host requests IP address: “DHCP request” msg  DHCP server sends address: “DHCP ack” msg

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao DHCP Replay A DHCP relay agent can be configured on each LAN The agent stores the IP address of the DHCP server and forward the request to the server

2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao DHCP with Replay Agent To find its IP address, a newly-booted machine broadcasts a DHCP Discover packet The DHCP relay agent on its LAN receives all DHCP broadcasts On receiving a DHCP Discover packet, the agent sends the packet as a unicast packet to the DHCP server, possibly on a distant network

Link Layer Devices Hubs Switches 2/9/2016 EEC-484/584: Computer Networks Wenbing Zhao

EEC-484/584: Computer Networks 5-18Hubs … physical-layer (“dumb”) repeaters:  Bits coming in one link go out all other links at same rate  All nodes connected to hub can collide with one another  No frame buffering  No CSMA/CD at hub: host NICs detect collisions twisted pair hub 2/9/2016

EEC-484/584: Computer Networks 5-19Switch Link-layer device: smarter than hubs, take active role  Store, forward Ethernet frames  Examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment Transparent  Hosts are unaware of presence of switches Plug-and-play, self-learning  Switches do not need to be configured 2/9/2016

EEC-484/584: Computer Networks 5-20 Switch: Allows Multiple Simultaneous Transmissions Hosts have dedicated, direct connection to switch Switches buffer packets Ethernet protocol used on each incoming link, but no collisions; full duplex  Each link is its own collision domain Switching: a-to-a’ and b-to-b’ simultaneously, without collisions  Not possible with dumb hub A A’ B B’ C C’ switch with six interfaces (1,2,3,4,5,6) /9/2016

EEC-484/584: Computer Networks 5-21 Switch Table Q: how does switch know that A’ reachable via interface 4, B’ reachable via interface 5? A: each switch has a switch table, each entry:  (MAC address of host, interface to reach host, time stamp) Looks like a routing table! Q: how are entries created, maintained in switch table?  Something like a routing protocol? 2/9/2016 A A’ B B’ C C’ switch with six interfaces (1,2,3,4,5,6)

EEC-484/584: Computer Networks 5-22 Switch: Self-Learning Switch learns which hosts can be reached through which interfaces  When frame received, switch “learns” location of sender: incoming LAN segment  Records sender/location pair in switch table A A’ B B’ C C’ A A’ Source: A Dest: A’ MAC addr interface TTL Switch table (initially empty) A 1 602/9/2016

EEC-484/584: Computer Networks 5-23 Switch: Frame Filtering/Forwarding When frame received: 1. record link associated with sending host 2. index switch table using MAC dest address 3. if entry found for destination then { if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood forward on all but the interface on which the frame arrived 2/9/2016

EEC-484/584: Computer Networks 5-24 Self-Learning, Forwarding: Example A A’ B B’ C C’ A A’ Source: A Dest: A’ MAC addr interface TTL Switch table (initially empty) A 1 60 A A’ Frame destination unknown: flood Destination A location known: selective send A’ A A’ 4 602/9/2016

EEC-484/584: Computer Networks 5-25 Interconnecting Switches Switches can be connected together A B r Q: sending from A to G - how does S 1 know to forward frame destined to G via S 4 and S 3 ? r A: self learning! (works exactly the same as in single- switch case!) S1S1 C D E F S2S2 S4S4 S3S3 H I G 2/9/2016

EEC-484/584: Computer Networks 5-26 Self-Learning Multi-Switch: Exercise Suppose C sends frame to I, I responds to C  Q: show switch tables and packet forwarding in S 1, S 2, S 3, S 4 A B S1S1 C D E F S2S2 S4S4 S3S3 H I G 1 2 2/9/2016

EEC-484/584: Computer Networks 5-27 Institutional Network 2/9/2016

EEC-484/584: Computer Networks 5-28 Switches vs. Routers Both store-and-forward devices  Routers: network layer devices (examine network layer headers)  Switches are link layer devices Routers maintain routing tables, implement routing algorithms Switches maintain switch tables, implement filtering, learning algorithms 2/9/2016