The Data Link Layer Johan Lukkien

Slides:



Advertisements
Similar presentations
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Advertisements

HIGH-LEVEL DATA LINK CONTROL (HDLC) HDLC was defined by ISO for use on both point-to-point and multipoint data links. It supports full-duplex communication.
Gursharan Singh Tatla SLIP and PPP 27-Mar
1 Fall 2005 Hardware Addressing and Frame Identification Qutaibah Malluhi CSE Department Qatar University.
Dec 14, 2006CS573: Network Protocols and Standards1 LAN Addressing Network Protocols and Standards Autumn
Semester 4 - Chapter 4 – PPP WAN connections are controlled by protocols In a LAN environment, in order to move data between any two nodes or routers two.
Network Concepts. Networks LAN WAN Main Concepts n Protocol n Media n Topology.
VLANs Port-based VLAN: switch ports grouped (by switch management software) so that single physical switch …… Switch(es) supporting VLAN capabilities can.
1 ELEN 602 Lecture 6 Review of last lecture –Generator polynomials –Stop-and-wait, Go-back-N ARQ Today’s lecture –Selective Repeat ARQ –Analysis of all.
Data/Link Layer Issues Protocol & Services Topology Error Detection & Recovery.
Chapter 10 Data Link Control Protocols. Agenda Definition Functions Attributes Concepts Types Conversion.
Example Data Link Protocols Quick review Reference Models? Layers? Flow Control? Bit stuffing? Connection Oriented? Synchronous transmission?
Gursharan Singh Tatla Transport Layer 16-May
HDLC and PPP. The Data Link Layer in the Internet A home personal computer acting as an internet host. Technology like Ethernet cannot provide “high-level”
Protocols and the TCP/IP Suite Chapter 4. Multilayer communication. A series of layers, each built upon the one below it. The purpose of each layer is.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Chapter 7 Low-Level Protocols
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 16.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Point-to-Point Access: PPP PPP Between Routers  Used for Point-to-Point Connections only  Used as data link control (encapsulates network layer.
Oct 21, 2014CS524: Advanced Computer Networks1 LAN Addressing Advanced Computer Networks.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
1 Physical and Data Link Layer Computer Network System Sirak Kaewjamnong.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Copyright Kenneth M. Chipps Ph.D. Ethernet Frame Format Last Update
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
1 Reliable stream service--TCP 1.TCP accepts byte stream, segments 2.It is over IP, so out-of-sequence is very common --lost or error frame results in.
Point-to-Point Protocol
Data Communications Data Link Layer.
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
Data Link Issues Relates to Lab 2.
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Data Link Issues This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet, and the Point-to-Point.
Networking Using the OSI Model.
High level Data Link Layer Protocol - HDLC
HDLC and PPP.
The University of Adelaide, School of Computer Science
Chapter 11 Data Link Control (DLC)
PPP Protocol.
Lecture (2).
Lesson 6 Point to Point Protocol
What the OSI Protocol Layers Do
OSI Protocol Stack Given the post man exemple.
Layered Architectures
Chapter 11 - Part 2 Data Link Control.
PPP PROTOCOL The First semester
TCP/IP Transmission Control Protocol / Internet Protocol
Data Link Issues This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet, and the Point-to-Point.
Point to Point Data Link Control
Ethernet : Framing and Addressing
Protocols and the TCP/IP Suite
ECE453 – Introduction to Computer Networks
Data and Computer Communications by William Stallings Eighth Edition
IP - The Internet Protocol
Chapter 3: Open Systems Interconnection (OSI) Model
Data Link Issues Relates to Lab 2.
CCNA 1 Chapter 5 Ethernet Fundamentals
TCP/IP Protocol Suite: Review
Layering & protocol stacks Johan Lukkien
Instructor Mazhar Hussain
IP - The Internet Protocol
A. Beheshti Communication Group
Protocols and the TCP/IP Suite
PPP Protocol.
Data Link Control (DLC) Services
IP - The Internet Protocol
13-LAN, packets, frames and topologies
Presentation transcript:

The Data Link Layer Johan Lukkien Computer Networks 2002/2003 The Data Link Layer Johan Lukkien 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

The OSI model 13-Jul-19 PSDU SSDU TSDU NSDU DSDU PhSDU Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Data Link Layer services Provide packet oriented service (“frames”) send/receive frames between machines deal with transmission errors support addressing, in the broadcast domain support sharing by several network layer protocols Services provided by physical layer put bits (signals) on (p2p or broadcast) wires diverse technologies Note: quality of service differs per technology e.g. reliability provided service itself as well e.g. connection orientation 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Data Link Layer issues Address LAN and point-2-point issues define DPDU and DSDU More or less “stack-independent, see picture Part of the link layer is technology dependent: the medium access (MAC) sublayer structure transmissions into frames (DPDU) policy for shared medium access e.g. dealing with collisions error detection flow control addressing 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Some stacks and the OSI model 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Data Link Layer issues (cnt’d) The other part (Logical Link Control, LLC) concerns the connection to multiple network layers additional functionality to improve quality of provided services reliability, connection orientation Note: these quality issues re- occur in network and transport layer e.g., flow control, error checking Rule of thumb: don’t make a low level service unnecessarily complicated e.g. is reliability useful at this level? When? Why? 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Framing methods Byte count Flags include length in header not used very much: difficult to re-sync Flags dedicated start and stop byte (sequence) often chosen to be identical need to be escaped when it occurs as part of payload byte stuffing: add an escape byte in front used the escape to escape itself as well generalize to bit sequence, HDLC: special pattern for start/stop, e.g. 01111110 after each occurrence of 5 1’s a 0 is stuffed Use special, unused bit patterns in physical layer 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Byte count A stream encoded with byte count without errors with errors Note: difficult to resynchronize 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Stuffing 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Flow control policies Feed-back based Rate-based communicate receiver state to sender so sender can take decision explicit start/stop commands ask for another fixed maximum amount of data more smoothly Rate-based internal mechanism to adjust the rate Data-Link: mainly feed-back based methods 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Example data link protocols Point-to-point (tradionally, reliable service) High level data link control protocol (HDLC) ISO 3309-1979 Point-to-point protocol RFC 1661 (1662,1663) The IEEE 802 LANs 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

High-Level Data Link Control Protocol Background master and tributaries sharing a multi-access link controller for several terminals “concentrator” Developed by IBM: SDLC adapted by ISO: HDLC adapted by CCITT to support X.25: LAP, LAPB ....collection of bit-oriented link-layer protocols 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

High-Level Data Link Control Protocol Frame format Point to many-point and vice versa use flags for separation of frames Control: sequence numbers, acks, .... Data: payload, any length Checksum: CRC Address: the involved tributary 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Frame types Three types, encoded in Control P/F: poll/final Information frame. A supervisory frame info concerning the communication status An unnumbered frame no numbering P/F: poll/final Next: expected frame Seq: serial number (sliding window) 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

PPP: Point to Point Protocol The Internet choice: derived from HDLC 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

PPP (cnt’d) Byte oriented – byte stuffing Derived from HDLC Protocol so it works on both bit- and byte oriented ‘wires’ Derived from HDLC address = 11111111 (broadcast...) mostly, control = 00000011 (unnumbered frame, no reliability) but may use HDLC mechanism Protocol type of packet in payload e.g. LCP, NCP, AUTHENTICATE, IP, IPX, AppleTalk, .... 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

PPP (cnt’d) Link Control Protocol: Authenticate setup line and bring it down evaluate line performance negotiate communication options in dependent of network protocol, e.g. header compression Authenticate optional Network Control Protocol negotiate details of supported network layer e.g. IP address more than one may be supported 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

PPP: LCP frame types 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Dial-up scenario Physical connection Line negotiation Authenticate PC user initiates connection to ISP router modems synchronize and negotiate Line negotiation LCP packets are sent via PPP frames to router finalize with this phase with connection-ack Authenticate using an authentication protocol, e.g. challenge/response; passwd Network IP-NCP packets are sent to negotiate IP as network protocol dynamically assigned IP address is returned from router PC operates as a part of the Internet User is done with connection NCP tears down the network connection (freeing the assigned IP address for re-use) LCP tears down the data link connection Modem is told to hangup 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Local area networks: IEEE 8-2 Communication based on broadcasting multi-access links or just packet-level broadcasting LAN technologies define both the physical and the MAC layer Particular issue addressing including multi-cast 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Multiple Access Protocols ALOHA Carrier Sense Multiple Access Protocols Collision-Free Protocols Limited-Contention Protocols Wavelength Division Multiple Access Protocols Wireless LAN Protocols 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Name, address, location, route.... Context a source sends a message to a destination; both connect to the network via an access point at a certain location (“identifier”) Access point a fixed physical location to connect to the network Name an identification that is independent of access point and communicating partner Address the name of an access point Route a path from source to destination dependent on the access points of both 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

IEEE 802 MAC addresses In fact: identifiers Attached to a Network Interface Card 48 bit numbers, with some structure globally unique – global authority (first Xerox, then IEEE), $1250/224 3 bytes fixed: Organizational Unique Identifier G/L bit: global unique-ness G/I bit: multicast? all 1’s: broadcast – not really used 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Logical Link Control (802.2) Standardizes towards network layer Adds quality to the service type 1 datagram service: best effort packet delivery type 2 reliable connection oriented service HDLC-like type ... achieve some reliability without the complete overhead of type 2 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

802.2 Format DSAP: destination access point (1byte) SSAP: source access point (1 byte) Control: 1 or 2 bytes (Data, i.e. the packet) Access points: protocols used at both sides usually identical two bits reserved group/individual (not really useful to address multiple protocols though....) global/local only 802-approved numbers are admitted and those have both SAP fields equal 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking

Using your own SAP Use locally assigned SAP’s Use header extension but that’s difficult to synchronize dynamically Use header extension both SAP’s: 10101010 (aa) a.k.a. SNAP, subnetwork access protocol indicates a header of 5 extra bytes to make headers have an even length to use the OUI of MAC addresses to standardize buying a block of addresses also brings a block of protocols.... 13-Jul-19 Johan J. Lukkien, j.j.lukkien@tue.nl TU/e Computer Science, System Architecture and Networking