Chapter 3. The Data Link Layer

Similar documents
The Data Link Layer. Data Link Layer Design Issues

06/05/2008. Chapter 3. The Data Link Layer. Data Link Layer Design Issues. Services Provided to the Network Layer. Error Control Flow Control

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

Chapter 3. The Data Link Layer

CS422 Computer Networks

Jaringan Komputer. Data Link Layer. The Data Link Layer. Study the design principles

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

The Data Link Layer Chapter 3

DLL: Flow Control DLL. Simplex. Fast sender / slow receiver scenario. Various protocols used. Simplified examples implemented in C.

Outline. EEC-484/584 Computer Networks. Data Link Layer Design Issues. Framing. Lecture 6. Wenbing Zhao Review.

THE DATA LINK LAYER. From: Computer Networks, 3rd ed. by Andrew S. Tanenbaum, 1996 Prentice Hall

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

Data Link layer (CN chap 3.1, 3.4, 3.6)

C08a: Data Link Protocols

Telecommunication Protocols Laboratory Course

Inst: Chris Davison

3. Data Link Layer 3-2

Data Link Layer, Part 4. Exemplary Protocols

The Data Link Layer Chapter 3

Flow control: Ensuring the source sending frames does not overflow the receiver

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

Data Link Layer. Indian Institute of Technology Madras

Chapter 11 Data Link Control 11.1

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

Introduction to Data Communications & Networking

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Lecture 5: Data Link Layer Basics

Chapter 11 Data Link Control 11.1

DATA LINK LAYER UNIT 7.

CSE 123: Computer Networks

Chapter 3 The Data Link Layer

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

Networking Technologies and Applications

CSE 461: Framing, Error Detection and Correction

INTERNET ARCHITECTURE & PROTOCOLS

Data Link Control. Outline. DLC functions

Where we are in the Course

Lesson Schedule: Class No. Portion covered per hour (An estimate)

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

Framing and Stuffing. Advanced Computer Networks

1.Write about the Data Link layer design issues.

Chapter 1. Introduction. Uses of Computer Networks. Business Applications Home Applications Mobile Users Social Issues

Data Link Control Protocols

Department of Computer and IT Engineering University of Kurdistan. Data Communication Netwotks (Graduate level) Data Link Layer

DATA LINK LAYER: NEED

Data Link Protocols. High Level Data. Control Protocol. HDLC Framing ~~~~~~~~ Functions of a Data Link Protocol. Framing PDUs. Addressing Destination

Hamming codes can also correct burst of errors by using iterleaving

COMPUTER NETWORKS UNIT-3

Computer Networking. Reliable Transport. Reliable Transport. Principles of reliable data transfer. Reliable data transfer. Elements of Procedure

Introduction to Computer Networks

CSE 123: Computer Networks

CSE123A discussion session

TCP/IP Protocol Suite 1

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

Chapter 5 Data-Link Layer: Wired Networks

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

POINT TO POINT DATALINK PROTOCOLS. ETI 2506 Telecommunication Systems Monday, 7 November 2016

UNIT II THE DATA LINK LAYER DESIGN ISSUES

23-3 TCP. Topics discussed in this section: TCP Services TCP Features Segment A TCP Connection Flow Control Error Control 23.22

Chapter 11 Data Link Control 11.1

Network Technology 1 5th - Transport Protocol. Mario Lombardo -

Data Link Layer. Learning Objectives. Position of the data-link layer. MCA 207, Data Communication & Networking

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

TCP/IP. Chapter 5: Transport Layer TCP/IP Protocols

file:///c:/users/hpguo/dropbox/website/teaching/fall 2017/CS4470/H...

Computer Networks. Data Link Layer. Design Issues. Basic Services. Notes. Paolo Costa costa. Notes. Note.

1.Describe the layer presentation in the TCPIP model and explain the protocol of each layer. July 2014/Jan 2015

Faculty of Science Final Examination. Computer Science B Basics of Computer Networks

Data-link. Examples of protocols. Generating polynomials. Example. Error detection in TCP/IP. Multiple Access Links and Protocols

Networking Link Layer

Data Link Control Protocols

Data and Computer Communications

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

William Stallings Data and Computer Communications. Chapter 7 Data Link Control

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 11, 2018

CSCI-1680 Link Layer I Rodrigo Fonseca

UNIT IV -- TRANSPORT LAYER

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

Telematics. 5th Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

Direct Link Networks. Framing. Lecture - Encoding & Framing 1. Problems. Areas for Discussion

PART III. Data Link Layer MGH T MGH C I 204

Lecture / The Data Link Layer: Framing and Error Detection

TCP and Congestion Control (Day 1) Yoshifumi Nishida Sony Computer Science Labs, Inc. Today's Lecture

Data Link Control CHAPTER 11. Solutions to Review Questions and Exercises. Review Questions

Data Link Layer Lecture 7

ERROR AND FLOW CONTROL. Lecture: 10 Instructor Mazhar Hussain

Analyzation of Automatic Repeat Request (ARQ) Protocols

CS1302 / Computer Networks

INF Data Communication Data Link Layer

Direct Link Networks. Lecture - Encoding & Framing 1. Areas for Discussion. Problems

Preview Test: HW3. Test Information Description Due:Nov. 3

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

Code No: RR Set No. 1

Ethernet Switches Bridges on Steroids. Ethernet Switches. IEEE Wireless LAN. Ad Hoc Networks

Data Link Protocols DATA LINK PROTOCOLS. Asynchronous Protocols. Types of Data Link Protocols XMODEM. Asynchronous Protocols.

Upper Layer Services. Berkeley Sockets Example of Socket Programming: Internet File Server

Transcription:

Chapter 3 The Data Link Layer 1

Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control 2

Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Regulating data flow Slow receivers not swamped by fast senders 3

Functions of the Data Link Layer (2) Relationship between packets and frames. 4

Services Provided to Network Layer (a) Virtual communication. (b) Actual communication. 5

Services Provided to Network Layer (2) Placement of the data link protocol. 6

Framing A character stream. (a) Without errors. (b) With one error. 7

Framing (2) (a) A frame delimited by flag bytes. (b) Four examples of byte sequences before and after stuffing. 8

Framing (3) Bit stuffing (a) The original data. (b) The data as they appear on the line. (c) The data as they are stored in receiver s memory after destuffing. 9

Error Detection and Correction Error-Correcting Codes Error-Detecting Codes 10

Error-Correcting Codes Use of a Hamming code to correct burst errors. 11

Error-Detecting Codes Calculation of the polynomial code checksum. 12

Elementary Data Link Protocols An Unrestricted Simplex Protocol A Simplex Stop-and-Wait Protocol A Simplex Protocol for a Noisy Channel 13

Protocol Definitions Continued Some definitions needed in the protocols to follow. These are located in the file protocol.h. 14

Protocol Definitions (ctd.) Some definitions needed in the protocols to follow. These are located in the file protocol.h. 15

Unrestricted Simplex Protocol 16

Simplex Stop-and- Wait Protocol 17

A Simplex Protocol for a Noisy Channel A positive acknowledgement with retransmission protocol. Continued 18

A Simplex Protocol for a Noisy Channel (ctd.) A positive acknowledgement with retransmission protocol. 19

Sliding Window Protocols A One-Bit Sliding Window Protocol A Protocol Using Go Back N A Protocol Using Selective Repeat 20

Sliding Window Protocols (2) A sliding window of size 1, with a 3-bit sequence number. (a) Initially. (b) After the first frame has been sent. (c) After the first frame has been received. (d) After the first acknowledgement has been received. 21

A One-Bit Sliding Window Protocol Continued 22

A One-Bit Sliding Window Protocol (ctd.) 23

A One-Bit Sliding Window Protocol (2) Two scenarios for protocol 4. (a) Normal case. (b) Abnormal case. The notation is (seq, ack, packet number). An asterisk indicates where a network layer accepts a packet. 24

A Protocol Using Go Back N Pipelining and error recovery. Effect on an error when (a) Receiver s window size is 1. (b) Receiver s window size is large. 25

Sliding Window Protocol Using Go Back N Continued 26

Sliding Window Protocol Using Go Back N Continued 27

Sliding Window Protocol Using Go Back N Continued 28

Sliding Window Protocol Using Go Back N 29

Sliding Window Protocol Using Go Back N (2) Simulation of multiple timers in software. 30

A Sliding Window Protocol Using Selective Repeat Continued 31

A Sliding Window Protocol Using Selective Repeat (2) Continued 32

A Sliding Window Protocol Using Selective Repeat (3) Continued 33

A Sliding Window Protocol Using Selective Repeat (4) 34

A Sliding Window Protocol Using Selective Repeat (5) (a) Initial situation with a window size seven. (b) After seven frames sent and received, but not acknowledged. (c) Initial situation with a window size of four. (d) After four frames sent and received, but not acknowledged. 35

Protocol Verification Finite State Machined Models Petri Net Models 36

Finite State Machined Models (a) State diagram for protocol 3. (b) Transmissions. 37

Petri Net Models A Petri net with two places and two transitions. 38

Petri Net Models (2) A Petri net model for protocol 3. 39

Example Data Link Protocols HDLC High-Level Data Link Control The Data Link Layer in the Internet 40

High-Level Data Link Control Frame format for bit-oriented protocols. 41

High-Level Data Link Control (2) Control field of (a) An information frame. (b) A supervisory frame. (c) An unnumbered frame. 42

The Data Link Layer in the Internet A home personal computer acting as an internet host. 43

PPP Point to Point Protocol The PPP full frame format for unnumbered mode operation. 44

PPP Point to Point Protocol (2) A simplified phase diagram for bring a line up and down. 45

PPP Point to Point Protocol (3) The LCP frame types. 46