gursharan singh tatla 24 mar 2011
play

Gursharan Singh Tatla 24-Mar-2011 Data Link Protocols Data Link - PDF document

Gursharan Singh Tatla 24-Mar-2011 Data Link Protocols Data Link Protocols are sets of rule and regulations used to implement data link layer. DATA LINK PROTOCOLS They contain rules for: Line Discipline Flow Control Gursharan


  1. Gursharan Singh Tatla 24-Mar-2011 Data Link Protocols  Data Link Protocols are sets of rule and regulations used to implement data link layer. DATA LINK PROTOCOLS  They contain rules for:  Line Discipline  Flow Control Gursharan Singh Tatla  Error Control mailme@gursharansingh.in www.eazynotes.com 24-Mar-2011 www.eazynotes.com 24-Mar-2011 1 2 Types of Data Link Protocols Asynchronous Protocols  Data Link Protocols are divided into two  Asynchronous protocols treat each character in a categories: bit stream independently.  These protocols are used in modems.  Asynchronous Protocols  They use start and stop bits, and variable gaps between characters.  Synchronous Protocols  They are slower than synchronous protocols in transmitting data. www.eazynotes.com www.eazynotes.com 3 24-Mar-2011 4 24-Mar-2011 Asynchronous Protocols XMODEM  The different asynchronous protocols are:  It is a half duplex stop & wait protocol.  It is used for telephone line communication  XMODEM between PCs.  YMODEM  The sender sends a frame to receiver & waits for  ZMODEM ACK frame.  Block Asynchronous Transmission (BLAST)  The receiver can send one cancel signal (CAN) to  Kermit abort the transmission.  The frame format of XMODEM is: SOH Header Data CRC 1 Byte 2 Bytes 128 Bytes www.eazynotes.com www.eazynotes.com 5 24-Mar-2011 6 24-Mar-2011 www.eazynotes.com 1

  2. Gursharan Singh Tatla 24-Mar-2011 XMODEM YMODEM  The various fields of frame are:  This protocol is similar to XMODEM with the following major differences:  SOH: It is start of header. It is 1 byte field.  Two cancel signals (CAN) are used to abort the  Header: It contains the sequence number. It is 2 transmission. bytes in length.  The data field is 1024 bytes long.  Data: This field holds 128 bytes of data.  ITU-T CRC-16 is used for error checking.  CRC: It is Cyclic Redundancy Check. This field checks the errors in data field. www.eazynotes.com 24-Mar-2011 www.eazynotes.com 24-Mar-2011 7 8 ZMODEM BLAST  It is a combination of XMODEM and YMODEM.  BLAST is more powerful than XMODEM.  It is a full duplex protocol.  It uses sliding window flow control. www.eazynotes.com www.eazynotes.com 9 24-Mar-2011 10 24-Mar-2011 Kermit Synchronous Protocols  It is a terminal program as well as file transfer  Synchronous Protocols take the whole bit stream protocol. and divide it into characters of equal size.  It is similar in operation to XMODEM, except that  These protocols have high speed and are used sender has to wait for a negative for LAN, WAN and MAN. acknowledgement (NAK) before it starts  Synchronous protocols are categorized into two transmission. groups:  Character-Oriented Protocol  Bit-Oriented Protocol www.eazynotes.com www.eazynotes.com 11 24-Mar-2011 12 24-Mar-2011 www.eazynotes.com 2

  3. Gursharan Singh Tatla 24-Mar-2011 Character-Oriented Protocol Bit-Oriented Protocol  It interprets frame as a series of bits.  It interprets frame as a series of characters.  Control information can be inserted as bits  These are also known as Byte-Oriented depending on the information to be contained in Protocols. the frame  Control information is inserted as separate control  Bit-oriented protocol can pack more information frames or as addition to existing data frame. into shorter frames.  The example of character-oriented protocol is  The examples of bit-oriented protocol are: Binary Synchronous Communication (BSC)  Synchronous Data Link Control (SDLC) developed by IBM.  High Level Data Link Control (HDLC) www.eazynotes.com 24-Mar-2011 www.eazynotes.com 24-Mar-2011 13 14 Synchronous Data Link Control Synchronous Data Link Control (SDLC) Protocol (SDLC) Protocol  The frame format of SDLC is:  SDLC protocol was developed by IBM in 1975. 01111110 01111110  After developing SDLC, IBM submitted it to Flag Address Control User Data ECF Flag American National Standard Institute (ANSI) and 8-Bit 8-Bit 16-Bit to International Standard Organization (ISO) for  The flag sequence of 8-bits 01111110 marks the acceptance. beginning and ending of the frame.  ANSI modified it to ADCCP (Advanced Data  Address field contains the address of the Communication Control Procedure. receiver.  ISO modified it to HDLC (High Level Data Link  Control field carries the sequence number, Control). acknowledgement, requests and responses. www.eazynotes.com www.eazynotes.com 15 24-Mar-2011 16 24-Mar-2011 Synchronous Data Link Control High Level Data Link Control (SDLC) Protocol (HDLC) Protocol  The frame format of SDLC is:  HDLC came into existence after ISO modified the SDLC protocol. 01111110 01111110 Flag Address Control User Data ECF Flag  It is a bit-oriented protocol that supports both half 8-Bit 8-Bit 16-Bit and full duplex communication.  The user data field carries the data and is of  Systems using HDLC are characterized by: variable length.  Station Types  ECF stands for Error Checking Field and is of 16- bits. It is used for error control.  Configuration.  Response Modes www.eazynotes.com www.eazynotes.com 17 24-Mar-2011 18 24-Mar-2011 www.eazynotes.com 3

  4. Gursharan Singh Tatla 24-Mar-2011 Station Types Primary Station  To make HDLC protocol applicable to various  It has complete control over the link at any time. network configurations, three types of stations  It has the responsibility of connecting & have been defined: disconnecting the link.  Primary Station  The frames sent by primary station are called  Secondary Station commands .  Combined Station www.eazynotes.com 24-Mar-2011 www.eazynotes.com 24-Mar-2011 19 20 Secondary Station Combined Station  All the secondary stations work under the control  A combined station can behave either as primary of primary station. or as secondary station.  The frames sent by secondary station are called  It can send commands as well as responses. responses . www.eazynotes.com www.eazynotes.com 21 24-Mar-2011 22 24-Mar-2011 Configuration Unbalanced Configuration  Configuration defines how the various stations  This type of configuration exists if one station is are connected to a link. primary and other is secondary.  There are three possible configurations:  Unbalanced Configuration  Symmetrical Configuration  Balanced Configuration www.eazynotes.com www.eazynotes.com 23 24-Mar-2011 24 24-Mar-2011 www.eazynotes.com 4

  5. Gursharan Singh Tatla 24-Mar-2011 Unbalanced Configuration Symmetrical Configuration  It can further be of two types:  In this configuration, both sites contain two stations: one primary and one secondary.  Point-to-Point Unbalanced Configuration :  Primary station of one site is linked with  If there is one primary and one secondary station. secondary station of the other and vice versa.  Multipoint Unbalanced Configuration : Primary Primary  If there is one primary and many secondary stations. Command Response Secondary Secondary Command Response Site A Site B www.eazynotes.com 24-Mar-2011 www.eazynotes.com 24-Mar-2011 25 26 Balanced Configuration Response Modes  In this configuration, both sites have combined  HDLC supports three modes of communication stations. between stations:  These combined stations are connected with  Normal Response Mode (NRM) single link.  Asynchronous Response Mode (ARM)  This single link can be controlled by either station.  Asynchronous Balanced Mode (ABM) www.eazynotes.com www.eazynotes.com 27 24-Mar-2011 28 24-Mar-2011 Asynchronous Response Mode Normal Response Mode (NRM) (ARM)  In this mode, primary station controls the link.  In this mode, if channel is idle, secondary station  Secondary station seeks permission from primary may initiate the transmission without seeking before transmitting the data. permission from the primary.  If any secondary station wants to communicate with other secondary station, the transmission is done via primary station only. www.eazynotes.com www.eazynotes.com 29 24-Mar-2011 30 24-Mar-2011 www.eazynotes.com 5

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend