Giuseppe Bianchi Layer 2 Framing HDLC (High-level Data Linl Control)

Slides:



Advertisements
Similar presentations
CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
Advertisements

Data Link Protocols(HDLC & PPP). Data Link Protocols The set of specifications used to implement the DLL. DLL Protocols Synchronous Protocols Character-oriented.
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
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
Data and Computer Communications Updated: 2/9/2009.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Link Control Slide 1 Data Link Control Chapter 7.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
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.
Two Protocol Case Studies HDLC & Kermit. HDLC A multi-functional protocol. Works in lots of modes. Forms the basis for MANY of the current protocols in.
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.
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Flow Control and Error Control En. Mohd Nazri Mahmud.
Data Communications Data Link Control. What Is Data Link Control? The Data Link layer of a model typically has the following responsibilities: 1. Creates.
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?
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”
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART II: Data Link Controls Framing Point-to-Point Protocol High-Level Data Link Control.
MODULE I NETWORKING CONCEPTS.
Network Technology CSE Network Technology CSE3020 Week 6.
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.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition.
Link Layer Protocols Martin Weiss. Slide 2 Objectives of this Meeting u Explain what a protocol is u Compare connection-oriented with connectionless protocol.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
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.
GBT SCA overview Slide 1-5 Work status Slide 6-10 Shuaib Ahmad Khan.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
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.
FIT – Monash University High-Level Data Link Control
EEC4113 Data Communication & Multimedia System Chapter 4: Flow Control by Muhazam Mustapha, October 2011.
Chapter 11 Data Link Control and Protocols Flow and Error Control Flow Control Error Control.
Data and Computer Communications Data Link Control Protocols.
Chapter 9: Data Link Control Business Data Communications, 4e.
Data and Computer Communications Data Link Control Protocols.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols 1.
Data Communications Data Link Layer.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
High level Data Link Layer Protocol - HDLC
HDLC and PPP.
Chapter 11 Data Link Control and Protocols
Chapter 11 - Part 2 Data Link Control.
3.2 Data Link Layer : Error & Flow Control
ICSA 341 Data Communications & Networking
CIS 321 Data Communications & Networking
Chapter 11 Data Link Control and Protocols.
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.
Kendali Data Link dan Protokol
Instructor Mazhar Hussain
Jiying Zhao SITE, University of Ottawa Canada.
EEC4113 Data Communication & Multimedia System Chapter 4: Flow Control by Muhazam Mustapha, August 2010.
William Stallings Data and Computer Communications
Presentation transcript:

Giuseppe Bianchi Layer 2 Framing HDLC (High-level Data Linl Control)

Giuseppe Bianchi HDLC  Typical Layer 2 protocol  Services:  Framing  Error detection and frame retransmission  Flow control  Most of current line-based L2 protocols are derived from HDLC  PPP (dial-up, ADSL, …)  LAP-D (ISDN)  LAP-B (X.25)  …

Giuseppe Bianchi Why framing? Framing received frames transmitted frames PHY: - bit oriented byte oriented FRAMES = “structured” information & control fields PHY = bit/byte streams

Giuseppe Bianchi HDLC Frame Format Flag 1 byte Address 1-n bytes Control 1-2 bytes Information (variable) FCS 2-4 bytes Flag 1 byte  Each frame starts & ends with reserved flag:  = 0x7e  Just one flag required between consecutive frames  Two consecutive flags = empty frame  Just ignore flagHDLC frameflagHDLC frame flagHDLC frameflagHDLC frameflag

Giuseppe Bianchi The need for “stuffing” Flag FRAME Flag Flag FRAME Flag FRAME Flag

Giuseppe Bianchi Bit stuffing  HDLC Frame delineated by flag character   Six consecutive 1s  Bit stuffing: prevent occurrence of more than five 1s!  Transmitter inserts extra 0 after each consecutive five 1s inside the frame  Receiver checks for five consecutive 1s  if next bit = 0, it is removed  if next two bits are 10, then flag is detected  If next two bits are 11, then frame has errors

Giuseppe Bianchi Bit stuffing example Data to be sent: After stuffing and framing * * Data received After destuffing and deframing EXAMPLE: send EXAMPLE: receive

Giuseppe Bianchi Byte stuffing  Byte-oriented channels?  Same stiffing idea, but stuffing via control escape octes:  Send (“reserved” byte) as (control escape octet) + (reserved byte)XOR( )  Extra XOR (bit 5 complemented) for improved robustness  Control escape octet  = 0x7d – of course NOW this is a reserved byte, too! 113F7E027D10 113F7D027D105E5D Receiver detects control escape And removes it restoring original byte as part of the frame (e.g. not as flag) See RFC 1662 for bit-stuffing over bit synchronous links (versus byte-oriented links)

Giuseppe Bianchi HDLC Frame Content Flag 1 byte Address 1-n bytes Control 1-2 bytes Information (variable) FCS 2-4 bytes Flag 1 byte  Address:  Receiving (secondary) station  Or Transmitting (secondary) station in case of response  = broadcast address  Control  Frame type and transmission control information  FCS  CRC16 or CRC32 for error detection  Size of fields decided during link set-up/initialization procedure

Giuseppe Bianchi Control field  Three types of frames  I = Information frame  S = Supervisory frame  U = Unnumbered frame

Giuseppe Bianchi Information Frame  N(S)  # of currently transmitted frame  N(R)  # of next frame expected to be received  i.e., ACK of all frames until N(R)-1  P/F bit  For polling operation 0N(S) P/F 0 8 bit case 16 bit case N(R) P/F N(S)N(R)

Giuseppe Bianchi Supervisory Frame  Control frame used to manage ACK and flow control  S=RR (Receive Ready)  Carries cumulative ACK up to N(R)-1  S=RNR (Receive Not Ready)  Blocks sender (flow control), carries cumulative ACK as well  S=REJ (Reject)  Negative ACK for frame # N(R), for Go-Back-N case  S=SREJ (Selective Reject)  Negative ACK for frame # N(R), for Sel. Repeat case  Extension: OTHER frame # to be retransmitted may be included in the frame information field 1 P/F 8 bit case 16 bit case N(R) P/F N(R) 0S 10S0000

Giuseppe Bianchi Unnumbered Frame  Frames used for datalink management  Initialization, Setup/release, Reset, Management and notification of malfunctions and issues  Several control messages  See details and examples in book  Different datalink scenarios  Asynchronous Balanced Mode (ABM)  LAP-B  Two full-duplex stations  Normal Response Mode (NRM)  Unbalanced (half-duplex) operation: primary station can only access link, secondary station is slave  Asynchronous Response Mode (ARM)  Like NRM, but secondary station may further initiate an unsolicited transmission 1 P/F M1M