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

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

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

Summary of MAC protocols

Principles behind data link layer services:

Medium Access Protocols

Principles behind data link layer services

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

Principles behind data link layer services:

Principles behind data link layer services:

The Link Layer and LANs: Ethernet and Swiches

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

CS 3516: Advanced Computer Networks

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

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

Link layer: introduction

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

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

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

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

CSCD 330 Network Programming Spring 2017

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

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

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

CSCD 330 Network Programming Winter 2016

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

Link Layer and LANs. CMPS 4750/6750: Computer Networks

The Link Layer II: Ethernet

Chapter 5 Link Layer and LANs

Chapter 5 Data Link Layer

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

Master Course Computer Networks IN2097

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

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

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Chapter 5: DataLink Layer

Link Layer and Ethernet

Link Layer and Ethernet

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

Master Course Computer Networks IN2097

Chapter V: Link Layer

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

Chapter 5 Data Link Layer

Chapter 6 The Link Layer and LANs

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

ECE 4450:427/527 - Computer Networks Spring 2017

EE 122: Ethernet and

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

Chapter V: Link Layer

CC451 Computer Networks

Lecture 20: Link Layer

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

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

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

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

LAN PROTOCOLS. Beulah A AP/CSE

ECE 4450:427/527 - Computer Networks Spring 2017

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

Link Layer and LANs. Our Goals. Link Layer

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

Lecture 9 Ethernet and other Link Layer protocols

LAN Interconnection and Other Link Layer Protocols

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

LINK LAYER AND LANS 1

Module 10 Data Link Layer CS655! 10-1!

Link Layer: CSMA/CD, MAC addresses, ARP

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

CSC 8560 Computer Networks: Link Layer

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

Chapter 6 The Link Layer and LANs

CSCI Computer Networks Spring 2017

CSCI Computer Networks Fall 2016

Computer Networks Principles LAN - Ethernet

Chapter 6 The Data Link layer

transferring datagram from one node data-link layer has responsibility of to adjacent node over a link 5-1 TDTS06 Computer networks

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

Computer Networking Lecture 5 Data link Layer Access Control. Based on slides by Peter Steenkiste Copyright, Carnegie Mellon

Data Link Protocols. TCP/IP Suite and OSI Reference Model. The TCP/IP protocol stack does not define the lower layers of a complete protocol stack

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

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

Networking Technologies and Applications

Chapter 5 Link Layer. Link Layer 5-1

Switching & ARP Week 3

Introductory to Computer Networks Local Area Networks. Lecture 16 Fall Isfahan University of technology Dr.

Chapter 5: The Data Link Layer

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

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

LAN Protocols. Required reading: Forouzan 13.1 to 13.5 Garcia 6.7, 6.8. CSE 3213, Fall 2015 Instructor: N. Vlajic

Chapter 6 The Link Layer and LANs

CCM 4300 Lecture 6 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

Session Exam 1. EG/ES 3567 Worked Solutions. (revised)

Chapter 5: Link layer

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

Hubs, Bridges, and Switches (oh my) Hubs

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Module 4 Data Link Layer CS655! 4-1!

ECE 158A: Lecture 13. Fall 2015

Transcription:

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

Physical Addresses Physical (or LAN or MAC) address: 48 bit string Hexadecimal representation (Example: 1A:23:5B:F8:00:69:C9) Unique (burned in the adapter ROM) MAC address allocation administered by IEEE Manufacturer buys portion of MAC address space (to assure uniqueness)

Physical Addresses Each adapter on LAN has unique LAN address

MAC Address vs IP address Analogy: - MAC address: like Social Security Number - IP address: like postal address MAC flat address => portability can move LAN card from one LAN to another IP hierarchical address NOT portable depends on network to which one attaches

Layer 3 and Layer 2 addresses Starting at A, given IP datagram addressed to B: look up net. address of B, find B on same net. as A link layer send datagram to B inside link-layer frame frame source, dest address A B datagram source, dest address 223.1.1.1 223.1.1.2 223.1.2.1 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 223.1.2.2 223.1.3.2 E B s MAC addr A s MAC addr A s IP addr B s IP addr IP payload frame datagram

ARP: Address Resolution Protocol Question: how to determine MAC address of B given B s IP address? Each IP node (Host, Router) on LAN has ARP module, table ARP Table: IP/MAC address mappings for some LAN nodes < IP address; MAC address; TTL> TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min)

ARP protocol A knows B's IP address, wants to learn physical address of B A broadcast (FF:FF:FF:FF:FF:FF) ARP query pkt, containing B's IP address all machines on LAN receive ARP query B receives ARP packet, replies to A with its (B's) physical layer address A caches (saves) IP-to-physical address pairs until information becomes old (times out) soft state: information that times out (goes away) unless refreshed

Routing to another LAN Path from A (IP: 111.111.11.111) to B (IP: 222.222.222.222) A R B

Routing to another LAN 1) A creates IP packet with source A, destination B 2) After looking at its routing table, A uses ARP to get R s physical layer address for 111.111.111.110 3) A creates Ethernet frame with R's physical address as dest, Ethernet frame contains A-to-B IP datagram 4) A s data link layer sends Ethernet frame 5) R s data link layer receives Ethernet frame 6) R removes IP datagram from Ethernet frame, sees its destined to B 7) After looking at its routing table, R uses ARP to get B s physical layer address 8) R creates frame containing A-to-B IP datagram sends to B

Ethernet dominant LAN technology: Simpler, cheaper (cheap $20 for 100Mbs!) than other technologies Kept up with speed race: 10, 100, 1000 Mbps Metcalfe s Ethernet sketch

Ethernet Frame Structure Sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame Preamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronize receiver, sender clock rates

Ethernet Frame Structure Addresses: 6 bytes, frame is received by all adapters on a LAN and dropped if address does not match Type: indicates the higher layer protocol, mostly IP but others may be supported CRC: checked at receiver, if error is detected, the frame is simply dropped

Ethernet uses CSMA/CD A: sense channel, if idle then { transmit and monitor the channel; If detect another transmission then { abort and send jam signal; update # collisions; delay as required by exponential backoff algorithm; goto A } else {done with the frame; set collisions to zero} } else {wait until ongoing transmission is over and goto A}

Ethernet s CSMA/CD Jam Signal: make sure all other transmitters are aware of collision; Exponential Backoff: To adapt retransmission attempts to estimated current load heavy load: random wait will be longer first collision: choose K from {0,1}; delay is K x 512 bit transmission times after second collision: choose K from {0,1,2,3} after ten or more collisions, choose K from {0,1,2,3,4,,1023}

Ethernet efficiency Considering an high number of nodes with many frames to send, : E 1 1+5 d prop /d trasm E = time percentage of successful transmissions d prop = maximum propagation delay d trasm = transmission time for the MTU frame

Ethernet limitation The proper functioning of Ethernet is guaranteed if a node is able to detect a collision. A collision has to be detected while transmitting a frame Condition: d trasm 2 d prop Given the network topology (the maximum distance among two hosts), it is possible to compute the minimum length of a frame Given the minimum length of a frame, it is possible to compute the maximum distance among two hosts or

(old) Ethernet devices Hub Physical Layer device Repeater operating at bit levels: repeat received bits on one interface to all other interfaces Each connected LAN referred to as LAN segment Hubs do not isolate collision domains: node may collide with any node residing at any segment in LAN Bridge Link Layer device Operating on Ethernet frames, examining frame header and selectively forwarding frame based on its destination (MAC Forwarding table) Bridge isolates collision domains since it buffers frames When frame is to be forwarded, bridge uses CSMA/CD to transmit

Ethernet Switches Similar to bridge: MAC forwarding table Full duplex links: no collisions Typical topology: individual hosts, star-connected into switch Plug-and-play: no need to be configured

The MAC forwarding table A row (entry) for each ARP address of the LAN: <Node LAN Address, Switch Interface, Time Stamp> If no entry for a destination: acts as a hub! A switch learns which hosts can be reached through which interfaces (MAC Learning): when frame received, bridge learns location of sender: incoming interface records incoming interface in the MAC forwarding table MAC Address AA-AA-AA-AA-AA-AA Interface eth0 frame eth2 PC0 AA-AA-AA-AA-AA-AA eth0 eth1 PC3 CC-CC-CC-CC-CC-CC PC2 BB-BB-BB-BB-BB-BB