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

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

The Link Layer and LANs: Ethernet and Swiches

CS 3516: Advanced Computer Networks

Chapter 5 Link Layer. Down Approach. Computer Networking: A Top. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Lecture 9 Ethernet and other Link Layer protocols

Link layer, LANs: outline. Chapter 5-2 Link Layer. MAC addresses (more) MAC addresses

Chapter 6 The Link Layer and LANs

CSC 4900 Computer Networks: Link Layer (2)

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

INTRODUCTION, SERVICES. Data-link layer has responsibility of transferring datagram from one node to physically adjacent node over a link

Chapter 4. DataLink Layer. Reference: Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.

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

CSC 401 Data and Computer Communications Networks

LINK LAYER AND LANS 1

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

Link layer: introduction

Chapter 5 Data Link Layer

Chapter V: Link Layer

Principles behind data link layer services

Summary of MAC protocols

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Principles behind data link layer services:

Principles behind data link layer services:

Lecture 9 The Data Link Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Master Course Computer Networks IN2097

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter V: Link Layer

Chapter 5: The Data Link Layer

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter 6 The Data Link layer

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Medium Access Protocols

Links. Error Detection. Link Layer. Multiple access protocols. Nodes Links Frame. Shared channel Problem: collisions How nodes share a channel

Chapter 5: Link layer

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Principles behind data link layer services:

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

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

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

Module 10 Data Link Layer CS655! 10-1!

Chapter 6: Link layer and LANs. Link layer, LANs: outline. Link layer: introduction. Link layer: context. Link layer services (more)

Chapter 5 Link Layer. Link Layer 5-1

Chapter 5 Link Layer and LANs

Master Course Computer Networks IN2097

Chapter 6 The Data Link layer

Chapter 6 The Link Layer and LANs

Chapter 6 The Link Layer and LANs

Chapter 6 The Link Layer and LANs

Link Layer and Ethernet

Chapter 6 The Link Layer and LANs

Chapter 5 Link Layer and LANs

Topic 2a. Ch 6: The Link Layer and LANs. Computer Networking: A Top Down Approach

CS/ECE 438: Communication Networks Fall Link Layer

Chapter 6 The Link Layer and LANs

Link Layer and Ethernet

Chapter 6 The Link Layer and LANs

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Module 4 Data Link Layer CS655! 4-1!

Chapter 5 Data Link Layer

Computer Communication Networks Link

Link Layer and LANs. Our Goals. Link Layer

Chapter 6 The Link Layer and LANs

Chapter 6 The Link Layer and LANs

CSCD 330 Network Programming Spring 2017

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

Chapter 5: Link layer

Architettura di Reti

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

Lecture 6 - Link layer. Lecture 5 Review. Link Layer. Introduction, Services. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Chapter 6 The Link Layer and LANs

COMP 3331/9331: Computer Networks and Applications. Data Link layer. Link layer, LANs: outline. Data Link Layer

Chapter 5 Link Layer. Networking: A Top. Computer. Down Approach 蒋力计算机科学与工程系上海交通大学. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

CSCD 330 Network Programming Winter 2016

CSCI Computer Networks Spring 2017

Chapter 5: DataLink Layer

Announcements. CS 5565 Network Architecture and Protocols. Ethernet. Ethernet. Ethernet Model. Ideal Multiple Access Protocol

COMP 3331/9331: Computer Networks and Applications

CSCI Computer Networks Fall 2016

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

CSC 4900 Computer Networks: Link Layer (3)

Chapter 6. Link Layer and LANs 6-1. Computer Networking: A Top Down Approach 7th edition Jim Kurose, Keith Ross Pearson/Addison Wesley April 2016

ECE 4450:427/527 - Computer Networks Spring 2017

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

ECE 4450:427/527 - Computer Networks Spring 2017

Chapter 5 part 2 LINK LAYER. Computer Networks Timothy Roscoe Summer Networks & Operating Systems Computer Networks

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 5 Link Layer and LANs

Lecture 20: Link Layer

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

Chapter 6: The Data Link Layer

COMP211 Chapter 6/7 Link Layer

Reminder: Datalink Functions Computer Networking. Datalink Architectures

CSC 8560 Computer Networks: Link Layer

The Link Layer II: Ethernet

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

CSCD 330 Network Programming Winter Lecture 17b Link Layer Protocols Who is this? Reading: Chapter 5

Transcription:

CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18 1

Final project demo Please do the demo THIS week to the TAs. Or you are allowed to use screenshots for demo. However the screenshots MUST be consistent to your program results, or you cannot get demo points 1-2

Next lecture Final review of the course Summarize important knowledge points that will be covered in the final examination. 1-3

Course evaluation I will finish the lecture 15 mins earlier and you may use the time for course evaluation. 1-4

Addressing: routing to another LAN walkthrough: send datagram from A to B via R focus on addressing at IP (datagram) and MAC layer (frame) assume A knows B s IP address assume A knows IP address of first hop router, R (how?) DHCP assume A knows R s MAC address (how?) ARP A 111.111.111.111 74-29-9C-E8-FF-55 R 222.222.222.220 1A-23-F9-CD-06-9B B 222.222.222.222 49-BD-D2-C7-56-2A 111.111.111.112 CC-49-DE-D0-AB-7D 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-5

Addressing: routing to another LAN A creates IP datagram with IP source A, destination B A creates link-layer frame with R's MAC address as dest, frame contains A-to-B IP datagram MAC src: 74-29-9C-E8-FF-55 MAC dest: E6-E9-00-17-BB-4B IP src: 111.111.111.111 IP dest: 222.222.222.222 IP Eth Phy A 111.111.111.111 74-29-9C-E8-FF-55 R 222.222.222.220 1A-23-F9-CD-06-9B B 222.222.222.222 49-BD-D2-C7-56-2A 111.111.111.112 CC-49-DE-D0-AB-7D 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-6

Addressing: routing to another LAN frame sent from A to R frame received at R, datagram removed, passed up to IP MAC src: 74-29-9C-E8-FF-55 MAC dest: E6-E9-00-17-BB-4B IP src: 111.111.111.111 IP src: 111.111.111.111 IP dest: 222.222.222.222 IP dest: 222.222.222.222 IP Eth Phy A 111.111.111.111 74-29-9C-E8-FF-55 111.111.111.112 CC-49-DE-D0-AB-7D IP Eth Phy R 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.220 1A-23-F9-CD-06-9B B 222.222.222.222 49-BD-D2-C7-56-2A 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-7

Addressing: routing to another LAN R forwards datagram with IP source A, destination B R creates link-layer frame with B's MAC address as dest, frame contains A-to-B IP datagram A 111.111.111.111 74-29-9C-E8-FF-55 IP Eth Phy R 222.222.222.220 1A-23-F9-CD-06-9B MAC src: 1A-23-F9-CD-06-9B MAC dest: 49-BD-D2-C7-56-2A IP src: 111.111.111.111 IP dest: 222.222.222.222 IP Eth Phy B 222.222.222.222 49-BD-D2-C7-56-2A 111.111.111.112 CC-49-DE-D0-AB-7D 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-8

Addressing: routing to another LAN R forwards datagram with IP source A, destination B R creates link-layer frame with B's MAC address as dest, frame contains A-to-B IP datagram A 111.111.111.111 74-29-9C-E8-FF-55 IP Eth Phy R 222.222.222.220 1A-23-F9-CD-06-9B MAC src: 1A-23-F9-CD-06-9B MAC dest: 49-BD-D2-C7-56-2A IP src: 111.111.111.111 IP dest: 222.222.222.222 IP Eth Phy B 222.222.222.222 49-BD-D2-C7-56-2A 111.111.111.112 CC-49-DE-D0-AB-7D 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-9

Addressing: routing to another LAN R forwards datagram with IP source A, destination B R creates link-layer frame with B's MAC address as dest, frame contains A-to-B IP datagram MAC src: 1A-23-F9-CD-06-9B MAC dest: 49-BD-D2-C7-56-2A IP src: 111.111.111.111 IP dest: 222.222.222.222 IP Eth Phy A 111.111.111.111 74-29-9C-E8-FF-55 R 222.222.222.220 1A-23-F9-CD-06-9B B 222.222.222.222 49-BD-D2-C7-56-2A 111.111.111.112 CC-49-DE-D0-AB-7D 111.111.111.110 E6-E9-00-17-BB-4B 222.222.222.221 88-B2-2F-54-1A-0F Link Layer 5-10

Link layer, LANs: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs addressing, ARP Ethernet switches 5.5 data center networking 5.6 a day in the life of a web request Link Layer 5-11

Ethernet dominant wired LAN technology: cheap $20 for NIC first widely used LAN technology simpler, cheaper than token LANs and ATM kept up with speed race: 10 Mbps 10 Gbps Metcalfe s Ethernet sketch Link Layer 5-12

Ethernet: physical topology bus: popular through mid 90s all nodes in same collision domain (can collide with each other) star: prevails today active switch in center each spoke runs a (separate) Ethernet protocol (nodes do not collide with each other) bus: coaxial cable star switch Link Layer 5-13

Ethernet frame structure sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame preamble preamble: dest. address source address type data (payload) CRC 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronize receiver, sender clock rates Link Layer 5-14

Ethernet frame structure (more) addresses: 6 byte source, destination MAC addresses if adapter receives frame with matching destination address, or with broadcast address (e.g. ARP packet), it passes data in frame to network layer protocol otherwise, adapter discards frame type: indicates higher layer protocol (mostly IP but others possible, e.g., Novell IPX, AppleTalk) CRC: cyclic redundancy check at receiver error detected: frame is dropped type preamble dest. address source address data (payload) CRC Link Layer 5-15

Ethernet: unreliable, connectionless connectionless: no handshaking between sending and receiving NICs unreliable: receiving NIC doesnt send acks or nacks to sending NIC data in dropped frames recovered only if initial sender uses higher layer rdt (e.g., TCP), otherwise dropped data lost Ethernet s MAC protocol: unslotted CSMA/CD wth binary backoff Link Layer 5-16

Ethernet switch link-layer device: takes an 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 Link Layer 5-17

Switch: 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 can transmit simultaneously, without collisions C 6 5 A A 1 2 4 3 B C B switch with six interfaces (1,2,3,4,5,6) Link Layer 5-18

Switch forwarding table Q: how does switch know 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? C 6 5 A A 1 2 4 3 B C B switch with six interfaces (1,2,3,4,5,6) Link Layer 5-19

Switch: self-learning Source: A Dest: A 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 C A A A B 6 1 2 5 4 3 B C A MAC addr interface TTL A 1 60 Switch table (initially empty) Link Layer 5-20

Switch: frame filtering/forwarding when frame received at switch: 1. record incoming link, MAC address of sending host 2. index switch table using MAC destination address 3. if entry found for destination then { if destination on segment from which frame arrived then drop frame else forward frame on interface indicated by entry } else flood /* forward on all interfaces except arriving interface */ Link Layer 5-21

Self-learning, forwarding: example Source: A Dest: A frame destination, A, locaton unknown: flood destination A location known: selectively send on just one link C A B 6 1 2 A A 5 A A 4 3 B C A A A MAC addr interface TTL A 1 60 A 4 60 switch table (initially empty) Link Layer 5-22

Interconnecting switches switches can be connected together S 4 A B S 1 C S 2 D E F G S3 H I Q: sending from A to G - how does S 1 know to forward frame destined to F via S 4 and S 3? A: self learning! (works exactly the same as in single-switch case!) Link Layer 5-23

Institutional network to external network router mail server web server IP subnet Link Layer 5-24

Switches vs. routers both are store-and-forward: routers: network-layer devices (examine networklayer headers) switches: link-layer devices (examine link-layer headers) both have forwarding tables: routers: compute tables using routing algorithms, IP addresses switches: learn forwarding table using flooding, learning, MAC addresses datagram frame application transport network link physical switch application transport network link physical link physical network link physical frame datagram frame Link Layer 5-25

Link layer, LANs: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs addressing, ARP Ethernet switches 5.6 data center networking 5.7 a day in the life of a web request Link Layer 5-26

Data center networks 10 s to 100 s of thousands of hosts, often closely coupled, in close proximity: e-business (e.g. Amazon) content-servers (e.g., YouTube, Akamai, Apple, Microsoft) search engines, data mining (e.g., Google) challenges: multiple applications, each serving massive numbers of clients managing/balancing load, avoiding processing, networking, data bottlenecks Inside a 40-ft Microsoft container, Chicago data center Link Layer 5-27

Data center networks Internet load balancer: application-layer routing receives external client requests directs workload within data center returns results to external client (hiding data center internals from client) Load balancer A C B Access router Border router Load balancer Tier-1 switches Tier-2 switches TOR switches Server racks 1 2 3 4 5 6 7 8 Link Layer 5-28

Data center networks rich interconnection among switches, racks: increased throughput between racks (multiple routing paths possible) increased reliability via redundancy Tier-1 switches Tier-2 switches TOR switches Server racks 1 2 3 4 5 6 7 8

Next class Finish Chapter 5 and final review Link Layer 5-30