Data Communications Data Link Layer.

Slides:



Advertisements
Similar presentations
Data Link Protocols(HDLC & PPP). Data Link Protocols The set of specifications used to implement the DLL. DLL Protocols Synchronous Protocols Character-oriented.
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.
William Stallings Data and Computer Communications 7th Edition
CEG3185 TUT6 Prepared by Zhenxia Zhang Revisited by Jiying Zhao.
Chapter 11 Data Link Control (DLC) Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 11 Data Link Control (DLC) Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Link Control Slide 1 Data Link Control Chapter 7.
Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame.
11-6 HDLC High-level Data Link Control (HDLC) is a bit-oriented protocol for communication over point-to-point and multipoint links. It implements the.
Data Link Control Protocols Data link control protocol Provides a layer of control between systems on a transmission medium referred to as data link. DLC.
11-6 HDLC High-level Data Link Control (HDLC) is a bit-oriented protocol for communication over point-to-point and multipoint links. It implements the.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
Chapter 9: Data Link Control Business Data Communications, 4e.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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?
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Data Link Protocols Asynchronous Protocols Synchronous Protocols
Gursharan Singh Tatla DATA LINK PROTOCOLS 24-Mar
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”
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Data Link Layer Network Fundamentals – Chapter 7.
MODULE I NETWORKING CONCEPTS.
Chapter 7 Data Link Control & Data Link Protocol By Dr.Sukchatri P.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
Data Link Control Protocols Dr. Muazzam A. Khan. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow.
Aegis School of Telecommunication Chapter 7 Data Link Control Protocols Telecom Systems I by Dr. M. G. Sharma, Phd.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Giuseppe Bianchi Layer 2 Framing HDLC (High-level Data Linl Control)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Control and Protocols.
1 Kyung Hee University Data Link Protocols. 2 Kyung Hee University 11 장 Data Link Control and Protocols 11.1 Flow and Error Control 11.2 Stop-and-Wait.
Computer Networks Module 3: Data Link Layer (Framing) Dr. Vikram Shete St. Francis Institute of Technology.
Chapter 11 Data Link Protocols A data link protocol is a set of specifications used to implement the data link layer [A protocol is the set of rules or.
Chapter 11 Data Link Control
Data Link Protocols Prof. Choong Seon HONG.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
DATA LINK CONTROL PROTOCOLS. 2 Introduction Data link control layer – often abbreviated simply to data link layer – is concerned with the transfer of.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
Chapter 7 OSI Data Link Layer.
Data Link 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.
Lecture Focus: Data Communications and Networking  Data Link Layer  MAC Frame Format Lecture 25 CSCS 311.
FIT – Monash University High-Level Data Link Control
Point-to-Point Protocol
Data Communication Network Models
Chapter 11 Data Link Control and Protocols Flow and Error Control Flow Control Error Control.
Data and Computer Communications Data Link Control Protocols.
+ PPP Protocol. + Outline WAN Data Link Layer protocols Point-to-point serial communications Transmission Synchronization HDLC.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 9: Data Link Control Business Data Communications, 4e.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI data link layer CCNA Exploration Semester 1 Chapter 7.
Jaringan Komputer_D3 TT
High level Data Link Layer Protocol - HDLC
HDLC and PPP.
Chapter 11 Data Link Control (DLC)
Chapter 11 Data Link Control and Protocols
Part I. Overview of Data Communications and Networking
What the OSI Protocol Layers Do
Chapter 11 - Part 2 Data Link Control.
ICSA 341 Data Communications & Networking
Lec 5 Layers Computer Networks Al-Mustansiryah University
CIS 321 Data Communications & Networking
Chapter 11 Data Link Control (DLC)
Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. Error control.
Instructor Mazhar Hussain
Jiying Zhao SITE, University of Ottawa Canada.
Data Link Control (DLC) Services
William Stallings Data and Computer Communications
Presentation transcript:

Data Communications Data Link Layer

OSI data link layer OSI model layer 2 TCP/IP model part of Network Access layer Application Presentation Session Transport Network Data link Physical Application Transport Internet Network Access TCP, UDP IP Ethernet, WAN technologies HTTP, FTP, TFTP, SMTP etc Segment Packet Frame Bits Data stream

Supporting and Connecting to Upper Layer Two basic functions: Allows the upper layers to access the media using framing. Controls how data is placed on the media and received from the media using media access control (MAC) and error detection.

Data Link Layer Functions Framing

Terminology

Connecting Upper-Layer Services to the Media Network devices have both a hardware and software component.

Connecting Upper-Layer Services to the Media Data Link Layer prepares the packets from the upper layer software processes for transmission over the physical media.

Supporting and Connecting to Upper Layer Protocol governs how to format a frame for use on that media Different protocols for different media Accept the frame Decapsulate to a packet Construct a new frame for the media Forward the new frame

Hops There may be a different layer 2 protocol in use on each hop of a journey. Different media, different types of link, different bandwidths, LAN/WAN affect the choice of protocol. Different protocols have different frames. The router removes the old frame and adds a new header and trailer for the next hop.

Controlling Transfer Across Local Media WAN Header WAN Trailer LAN Header LAN Header LAN Trailer Packet Packet LAN Trailer Different media… Different characteristics… Different MAC method…

Standards Not defined by RFCs as in the other layers. Defined by engineering organizations.

Connecting Upper-Layer Services to the Media IEEE Logical Link Control (LLC) Sub-Layer Frames the network layer packet Identifies the network layer protocol Media Access Control (MAC) Sub-Layer Addresses the frame Marks the beginning and end of the frame

Framing

The Frame There are many different Data Link Layer protocols…. The Data Link Layer protocol describes the features required for the transport of frames.

The Frame Header Data Trailer However, each Data Link Layer protocol is constructed using the same basic format. It’s the contents that differ…. Header Data Trailer Role of the Header Contains the control information required by the protocol.

Framing: Role of the Header Specific bit sequence that indicates to the receiving device that the frame starts here. For example: Header Data Trailer Start Address Type/Length The source and destination MAC addresses. A code identifying the type of frame OR the total length of the frame.

Flags and Byte/Bit Stuffing Frames Flags and Byte/Bit Stuffing

A frame in a character-oriented protocol

Byte stuffing Note Byte stuffing is the process of adding 1 extra byte whenever there is a flag or escape character in the text.

Byte stuffing and unstuffing

A frame in a bit-oriented protocol

Bit stuffing Note Bit stuffing is the process of adding one extra 0 whenever five consecutive 1s follow a 0 in the data, so that the receiver does not mistake the pattern 0111110 for a flag.

Bit stuffing and unstuffing

Flow Diagram- Receiver Side

Three exceptions With 3 exceptions bit stuffing is required whenever five 1s occur consecutively: Bit sequence really is a flag The transmission is being aborted The channel is being put into idle

Bit Stuffing Example with possible errors

HDLC

Topics discussed in this section: HDLC High-level Data Link Control (HDLC) is a bit-oriented protocol for communication over point-to-point and multipoint links. Topics discussed in this section: Modes of Operation Frames HDLC Operation

Modes of Communication Mode: Is the relationship between two devices involved in an exchange The mode describes who controls the link Two Modes Normal response mode (NRM) Asynchronous balance mode (ABM)

Normal Response Mode

Asynchronous Balance Mode

HDLC Frames Three types of frames: Information frames (I-frames) Used to transport user data and control information Supervisory frames (S-frames) Used only to transport control information Primary data link layer flow and error controls Unnumbered frames (U-frames) Used for system management Information carried by U-frames is intended for managing the link

HDLC Frames with information

Flag field Eight bit sequence with a bit pattern 01111110 Identifies both the beginning and end of a frame Serves as a synchronization pattern for the receiver

Address field Second field of an HDLC frame Identifies the primary or secondary stations involvement in the frame transmission or reception. Each station on the link has a unique address.

Address field In an unbalanced configuration, the Address field in both commands and responses refers to the secondary station. Commands

Address field In a balanced configuration, the command frame contains the destination station address and the response frame has the sending station's address.

HDLC—Control field I-frames and S-frames U-frames For Flow and Error Control U-frames provide supplemental Link information.

I-Frame Frames containing data for transmission Contains user data Sequence no. of sent data (Seq no.) Sequence no. of Received data (Ack no.)

S-Frame Used for acknowledgment, polling, temporary suspension of information transfer, or error recovery. Frames with the S format control field cannot contain an information field.

Sequence no. of Received data (Ack no.) S-frame control field in HDLC Sequence no. of Received data (Ack no.) Code Command 00 RR Receive ready 01 REJ Reject 10 RNR Receive not ready 11 SREJ Selective-reject

Un-numbered frame Used for link management For example they are used to set up the logical link between the primary station and a secondary station To inform the secondary station about the mode of operation which is used.)  Or to terminate the link.

U-frame control field in HDLC

HDLC—Control field-- (P/F) bit It can only be recognized when it is set to 1. If it is set to 0, it is ignored. The poll/final bit is used to provide dialogue between the primary station and secondary station. The P bit signifies a poll. Poll—frame sent by a primary station to a secondary Address field contains the address of the receiver Final—frame sent by a secondary station to a primary Address field contains the address of the sender

Poll/final field in HDLC

Frame check sequence(FCS)field This field contains a 16 bit, or 32 bit cyclic redundancy check (CRC). CRC is a error detection method.

HDLC Operation Exchange of information, supervisory and unnumbered frames Three phases Initialization Data transfer Disconnect

Example of connection and disconnection

Example of piggybacking without error

Example of piggybacking with error

Examples of Operation (1)

Examples of Operation (2)

Problem--HDLC The HDLC frame in the figure is sent from a primary to a secondary. Answer the following questions. 01111110 00001111 10001011 FCS What is the address of the Secondary? What is the type of the frame? What is the sender sequence number? What is the ack number? Does the frame carry user data? If yes, what is the value of the data? Does the frame carry management data? If yes, what is the value of the data? What is the purpose of the frame?