Principles behind data link layer services:

Similar documents
Principles behind data link layer services:

Principles behind data link layer services

Principles behind data link layer services:

Summary of MAC protocols

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

Medium Access Protocols

Chapter 5 Link Layer and LANs

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

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

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

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

The Link Layer and LANs: Ethernet and Swiches

CSC 4900 Computer Networks: Link Layer (2)

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

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

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

Link layer: introduction

Master Course Computer Networks IN2097

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

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

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

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

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

Chapter V: Link Layer

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

Chapter 6 The Link Layer and LANs

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

Hubs, Bridges, and Switches (oh my) Hubs

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

CC451 Computer Networks

Master Course Computer Networks IN2097

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

Underlying Technologies -Continued-

Chapter V: Link Layer

CSCD 330 Network Programming Spring 2017

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

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Chapter 5: DataLink Layer

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

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

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

Link Layer and LANs. Our Goals. Link Layer

Link Layer and Ethernet

LINK LAYER AND LANS 1

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

LAN Interconnection and Other Link Layer Protocols

Link Layer and Ethernet

Lecture 20: Link Layer

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

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

Module 10 Data Link Layer CS655! 10-1!

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

More on Link Layer. Recap of Last Class. Interconnecting Nodes in LAN (Local-Area Network) Interconnecting with Hubs. Computer Networks 9/21/2009

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

Chapter 5 Data Link Layer

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

CSCD 330 Network Programming Winter 2016

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

CSC 8560 Computer Networks: Link Layer

Chapter 5: The Data Link Layer

Chapter 5: Link layer

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

CSCI Computer Networks Spring 2017

Chapter 5 Data Link Layer

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

Chapter 6 The Data Link layer

SC250 Computer Networking I. Link Layer. Prof. Matthias Grossglauser LCA/I&C.

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

CSCI Computer Networks Fall 2016

Medium Access Control

Module 4 Data Link Layer CS655! 4-1!

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

Lecture 9 Ethernet and other Link Layer protocols

CS 455/555 Intro to Networks and Communications. Link Layer

The Link Layer and LANs. Chapter 6: Link layer and LANs

Chapter 6 The Link Layer and LANs

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

CSC 4900 Computer Networks: The Link Layer

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

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

Chapter 5 Link Layer and LANs

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

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

Good day. Today we will be talking about Local Internetworking What is Internetworking? Internetworking is the connection of different 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. Link Layer 5-1

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

Link Layer: CSMA/CD, MAC addresses, ARP

Communication Networks

ECE 4450:427/527 - Computer Networks Spring 2017

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

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

CSC 401 Data and Computer Communications Networks

Data Link Layer: Multi Access Protocols

Chapter 5 Link Layer and LANs

Chapter 6 The Link Layer and LANs

Switching and Forwarding Reading: Chapter 3 1/30/14 1

Transcription:

Data link layer Goals: Principles behind data link layer services: Error detection, correction Sharing a broadcast channel: Multiple access Link layer addressing Reliable data transfer, flow control Example link layer technology Ethernet Bridges vs. routers Link layer services Framing and link access Encapsulate datagram: frame adds header, trailer Channel access if shared medium Frame headers use physical addresses = MAC to identify source and destination Different from IP address! Reliable delivery (between adjacent nodes) Seldom used on low bit error links (fiber optic, co-axial cable and some twisted pairs) Sometimes used on high error rate links (e.g., wireless links) 1

Link layer services (more) Flow Control Pacing between sending and receiving nodes Error Detection Errors are caused by signal attenuation and noise. Receiver detects presence of errors signals sender for retrans. or drops frame Error Correction Receiver identifies and corrects bit error(s) without resorting to retransmission Half-duplex and full-duplex With half duplex, nodes at both ends of link can transmit, but not at same time Multiple access links Two types of links : Point-to-point PPP for dial-up access Point-to-point link between Ethernet switch and host Broadcast (shared wire or medium) Traditional Ethernet Upstream HFC 802.11 wireless LAN 2

MAC protocols: Three cathegories Channel partitioning Divide channel into smaller pieces (time slots, frequency) Allocate piece to node for exclusive use Random access Allow collisions Recover from collisions Taking turns Tightly coordinate shared access to avoid collisions Goal: efficient, fair, simple, decentralized Addresses IP address (32-bit): Network-layer address Used to get datagram to destination network (recall IP network definition) MAC (or LAN or physical or Ethernet) address: Data link-layer address Used to get datagram from one interface to another physically-connected interface (same network) 48 bit MAC address (for most LANs) burned in the adapter ROM 3

Addresses (2.) Each adapter on LAN has unique LAN address 71-65-F7-2B-08-53 LAN (wired or wireless) 1A-2F-BB-76-09-AD 58-23-D7-FA-20-B0 Broadcast address = FF-FF-FF-FF-FF-FF = adapter 0C-C4-11-6F-E3-98 Addresses (3.) MAC address allocation administered by IEEE Manufacturer buys portion of MAC address space (to assure uniqueness) 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 4

Example 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.2.1 223.1.1.2 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 knowing B s IP address? 237.196.7.23 71-65-F7-2B-08-53 LAN 237.196.7.78 1A-2F-BB-76-09-AD 237.196.7.14 58-23-D7-FA-20-B0 Each IP node (Host, Router) on LAN has ARP 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) 237.196.7.88 0C-C4-11-6F-E3-98 5

ARP protocol: Same LAN (Network) 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 Ethernet Dominant LAN technology: Cheap $20 for 100Mbs! First widely used LAN technology Simpler, cheaper than token LANs and ATM Kept up with speed race: 10 Mbps 10 Gbps Shared medium Metcalfe s Etheret sketch 6

Unreliable, connectionless service Connectionless: No handshaking between sending and receiving adapter. Unreliable: Receiving adapter does not send ACKs or NACKs to sending adapter Stream of datagrams passed to network layer can have gaps Gaps will be filled if app is using TCP Otherwise, app will see the gaps Ethernet uses CSMA/CD No slots Adapter does not transmit if it senses that some other adapter is transmitting, that is, carrier sense Transmitting adapter aborts when it senses that another adapter is transmitting, that is, collision detection Before attempting a retransmission, adapter waits a random time, that is, random access 7

Interconnecting LANs Q: Why not just one big LAN? All stations must share bandwidth Limited cable length Large collision domain (can collide with many stations) Limited number of stations Interconnecting With Hubs Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces Hubs can be arranged in a hierarchy (or multitier design), with backbone at its top 8

Hubs (more) 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 Hub Advantages: Simple, inexpensive device Multi-tier provides graceful degradation: portions of the LAN continue to operate if one malfunctions Extends maximum distance between node pairs (100m per Hub) Bridges (Switches) Link layer devices: Stores and forwards Ethernet frames Examines frame header and selectively forwards frame based on MAC dest address When frame is to be forwarded on segment, uses CSMA/CD to access segment Bridge isolates collision domains: it buffers frames 9

Bridges/Switch: Advantages Higher total max throughput No limit on number of nodes No limit on geographical coverage Can connect different Ethernet types (store and forward) Transparent: hosts do not need to change LAN adapters Plug-and-play, self-learning Switches do not need to be configured Bridges/Switch: Forwarding Forwarding: To which LAN segment should a frame be forwarded? Looks like a routing problem switch 10

Bridges/Switch: Self Learning A bridge/switch has a bridge/switch table Entry in table: (MAC Address, Interface, Time Stamp) Stale entries in table dropped (TTL can be 60 min) Bridge 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 bridge table Bridges/switch: filtering/forwarding When switch receives a frame: index switch table using MAC dest address 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 11

Switch: Traffic Isolation Switch installation breaks subnet into LAN segments Switch filters packets: Same-LAN-segment frames not usually forwarded onto other LAN segments Segments become separate collision domains switch collision domain collision domain collision domain Redundant networks Network with multiple paths Alternate path for each source, destination pair Advantage Increased reliability Single network failure OK More oportunities for load distribution Disadvantage Added complexity 12

Bridges spanning tree Avoid cycles Frames may multiply and forwarded forever Organize bridges into spanning tree Disable a subset of interfaces Disabled Bridges vs. Routers Both store-and-forward devices Routers: network layer devices (examine network layer headers) Bridges: link layer devices Use tables Routers: routing tables via routing algorithms Bridges: filtering tables via filtering, learning, spanning tree algorithm 13

Bridges + and - + Simple operation Low processing bandwidth - Restricted topologies: Spanning tree to avoid cycles - Single broadcast domain No protection from broadcast storms (broadcasts will be forwarded by bridge) Routers + and - + Arbitrary topologies Limited cycling (TTL and good routing protocols) + Firewalls protection Against broadcast storms - Complex operation Require IP address configuration (not plug and play) Require higher processing bandwidth 14

Routers vs. Bridges Bridges Good in small networks (few hundred hosts) Routers Good in large networks (thousands of hosts) 15