Applied Data Communication Lecture 14



Similar documents
PROPERTY MANAGEMENT SYSTEM

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

Data Link Protocols. 5.4 Framing

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

X D I A L U P. X12 (HIPAA) Dial-up Transmission System. Document Version

Data Link Layer. Flow Control. Flow Control

Data Link Layer(1) Principal service: Transferring data from the network layer of the source machine to the one of the destination machine

Computer Networks. Data Link Layer

TELOCATOR ALPHANUMERIC PROTOCOL (TAP)

Operating Systems and Computer Networks / Datenverarbeitung 2 / Data Processing 2

ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot

High-Level Data Link Control

Chapter 11 V.25 bis Autodialer

V.25 bis Autodialer (External Modem Only)

TAP Interface Specifications

File Transfer Protocols In Anzio

Supporting File Transfers Using the ZMODEM Protocol - Serial Prog...

Memory is implemented as an array of electronic switches

DATA COMMUNICATION AND NETWORKS

Transport Layer. Chapter 3.4. Think about

URL encoding uses hex code prefixed by %. Quoted Printable encoding uses hex code prefixed by =.

Chapter 3: Sample Questions, Problems and Solutions Bölüm 3: Örnek Sorular, Problemler ve Çözümleri

Modicon Modbus Protocol Reference Guide. PI MBUS 300 Rev. J

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

Development of communication interface and GUI for Minec 3x

Data Link Layer Overview

Transport Layer Protocols

Process Control and Automation using Modbus Protocol

Computer Networks. Chapter 5 Transport Protocols

Communication Concepts

Appendix B RCS11 Remote Communications

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

point to point and point to multi point calls over IP

Xi2000 Series Configuration Guide

BARCODE READER V 2.1 EN USER MANUAL

LLC: Frame Construction. Layer 2: Division into two Parts. Error-detecting and -correcting Codes. Error-correcting Codes

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Data Link Protocols. TCP/IP Suite and OSI Reference Model

AN_2901CE_001 JULY 2005

DATA COMMUNICATION (Basics of data communication, OSI layers.)

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

PPP (Point-to-Point Protocol)

SCADA System. Application Guide

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

_ IBM Control Unit 3272 Control Unit 3275 Display Station. Information Dis'play System

Ethernet. Ethernet. Network Devices

Quectel Cellular Engine

A Transport Protocol for Multimedia Wireless Sensor Networks

Modbus Protocol. PDF format version of the MODBUS Protocol. The original was found at:

MBP_MSTR: Modbus Plus Master 12

Based on Computer Networking, 4 th Edition by Kurose and Ross

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

INTERNATIONAL TELECOMMUNICATION UNION. SERIES V: DATA COMMUNICATION OVER THE TELEPHONE NETWORK Interfaces and voiceband modems

Voyager 9520/40 Voyager GS9590 Eclipse 5145

Ring Local Area Network. Ring LANs

flarq flarqhelp-main The main screen dialog for flarq is: Windows image - identical in Linux

Model 200 / 250 / 260 Programming Guide

Stop And Wait. ACK received; transmit frame 2 CS 455 3

Symbols in subject lines. An in-depth look at symbols

Protocols and Architecture. Protocol Architecture.

COMPUTER NETWORKS REVIEW QUESTIONS AND PROBLEMS

Technical Support Bulletin Nr.18 Modbus Tips

TOE2-IP FTP Server Demo Reference Design Manual Rev1.0 9-Jan-15

Chapter 1: Introduction to Communications What is Data Communications? Data Communication Networks Basic Components of a communications system

WAN Data Link Protocols

DEBT COLLECTION SYSTEM ACCOUNT SUBMISSION FILE

(Refer Slide Time: 02:17)

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

BI-300. Barcode configuration and commands Manual

LIN (Local Interconnect Network):

CSMA/CA. Information Networks p. 1

BRMO 80 / ETH-IP. User Manual. Réf : MU-BRMO 80-ETH-IP-1.4-EN

COMMUNICATION NETWORKS WITH LAYERED ARCHITECTURES. Gene Robinson E.A.Robinsson Consulting

[Prof. Rupesh G Vaishnav] Page 1

Single channel data transceiver module WIZ2-434

2 Basic Concepts. Contents

ASCII CODES WITH GREEK CHARACTERS

Signalling Control System Serial Train Information Interface

Meridian 1 Option 11C and 11C Mini Customer Configuration Backup and Restore Guide

The ASCII Character Set

CONTROL MICROSYSTEMS DNP3. User and Reference Manual

CSE331: Introduction to Networks and Security. Lecture 6 Fall 2006

This is great when speed is important and relatively few words are necessary, but Max would be a terrible language for writing a text editor.

BAR CODE 39 ELFRING FONTS INC.

A short description to the VABus protocol

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Review of Error Detection of Data Link Layer in Computer Network

Data Link Protocols. Link Layer Services. Framing, Addressing, link access: Error Detection:

Voice and Delivery Data Networks

11/22/

Introduction to Networking and the OSI Model

Concept XXMIT / RTXMIT Transmit (Receive) Function Block

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

CSE 123A Computer Networks

COMPUTER NETWORKS HANDOUTS LECTURERS # PREPARED BY: HAMMAD KHALID KHAN. Copyright Virtual University of Pakistan

Turquoise Equities. TQ401 - Level 2 MITCH UDP Market Data. Issue November 2015

Transcription:

Applied Data Communication Lecture 14 Character oriented Data Link Character-oriented data link control Asynchronous Synchronous Kristjan Sillmann reaalajasüsteemide õppetool TTÜ automaatikainstituut character-oriented Xmodem Zmodem Kermit Others bit-oriented character-oriented example: Binary Synchronous kristjan.sillmann@ttu.ee 1 2 Asynchronous File Transfer Used on: Point-to-point asynchronous circuits Typically over phone lines via modem (ex: Bulletin Board System) Computer to computer for transfer of data files Designed to provide error detection and correction facilities for reliable file transfer. Large amount of data to be transmitted i.e. makes sense to group data together into blocks to transmit at same time Asynchronous File Transfer Characteristics of async. file transfer : Group data (binary or text) into blocks to be transmitted (rather than sending character by character), Supply error detection (CRC) symbol(s) with each block Implement ARQ scheme for error correction (resend the blocks which had errors) Xmodem Takes data being transmitted and breaks into blocks Each block has: Start-of-header (SOH) character 1-byte block number 128 bytes of data 1-byte checksum for error checking 3 4

Start of Header Xmodem One of the oldest async file transfer Uses stop-and-wait ARQ. Advantages Universally available Copes well with noisy lines Disadvantages Small packet size = high overheads = low efficiency No batch facility SOH Block # Block # compl. (128 bytes) Checksum 5 Xmodem frame With asynchronous, characters are sent one after another, with variable gaps between them. SOH One character header Data: 128 bytes CRC 6 extensions of Xmodem extensions of Xmodem Xmodem-CRC improves error checking by using CRC-8 (instead of checksum) Xmodem-1K: Xmodem-CRC + increased efficiency by using 1024 bytes for data Zmodem: Newer protocol than Xmodem Incorporates features of several Uses CRC-32 with continuous ARQ (sliding window) Dynamically adjusts packet size according to communication circuit conditions Usually Zmodem is preferred to Xmodem. 7 ZModem Advantages Large packet size = low overheads = high efficiency Batch Transfers Auto receive Disadvantages Relatively susceptible to noisy lines Not available in all comms packages Kermit: Supports different packet data sizes and error detection methods Typically uses 1 KByte packets with CRC-24 size adjusted during transmission to optimize efficiency 8

Data Link Protocols Protocol Size Error Detection Retransmission Medium Access Asynchronous Transmission 1 Parity Continuous ARQ Full Duplex File Transfer Protocols XMODEM 132 8-bit Checksum Stop-and-wait ARQ Controlled Access XMODEM-CRC 132 8-bit CRC Stop-and-wait ARQ Controlled Access XMODEM-1K 1028 8-bit CRC Stop-and-wait ARQ Controlled Access ZMODEM * 32-bit CRC Continuous ARQ Controlled Access KERMIT * 24-bit CRC Continuous ARQ Controlled Access Synchronous Protocols SDLC * 16-bit CRC Continuous ARQ Controlled Access HDLC * 16-bit CRC Continuous ARQ Controlled Access Token Ring * 32-bit CRC Stop-and wait ARQ Controlled Access Ethernet * 32-bit CRC Stop-and wait ARQ Contention PPP * 16-bit CRC Continuous ARQ Full Duplex * Varies depending upon the message length. 9 Communications (BSC or BiSync): Supports EBCDIC, ASCII, and Transcode (rare 6-bit code) Uses Stop-and-Wait ARQ (- the major drawback of BSC) Error Checking A block check character (BCC) in data frame contains error checking information CRC is the most popular method for calculating the BCC The transmission is based on the sending of special characters to control the data link. 10 Control Function ASCII Code EBCDIC Code Character Hex * Character Hex ACK 0 DLE, 0 10, 30 DLE, '70' 10, 70 ACK 1 DLE, 1 10, 31 DLE, / 10, 61 DLE DLE 10 DLE 10 ENQ ENQ 05 ENQ 2D EOT EOT 04 EOT 37 ETB ETB 17 ETB 26 ETX ETX 03 ETX 03 ITB US 1F IUS 1F NAK NAK 15 NAK 3D PAD DEL FF 'FF' FF SOH SOH 01 SOH 01 STX STX 02 STX 02 SYN SYN 16 SYN 32 SYN (Synchronous Idle) Provides the hardware recognizable bit pattern rquired to establish character synchronization at the receiving adapter ENQ (Enquiry) Recognized as a request for a response, or a bid for line control. In some cases it may be used to signify an abnormal end of text or message 'abort'. SOH (Start of Header) Indicates the inclusion of auxiliary data preceding the message text. WACK DLE, ; 10, 3B DLE,, 10, 6B 11 12

STX (Start of Text) Indicates the beginning of data in a block. STX may be preceded by a header. Directly behind the STX is the first character of the data field. NAK (Negative Acknowledgement) Indicates that there was an error in a data block. Also used as a response to a bid for line control to indicate a 'Not Ready' condition. DLE (Data Link Escape) Multiple usage as a control character modifier. ETB (End of Transmission Block) Indicates an end of data block, but more will follow. Is used to instruct the receiving unit to perform error checking and acknowledge. ETX (End of Text) Same as ETB, only no more blocks will follow. ITB (End of Intermediate Transmission Block) Same as ETB, except that the receiving statio will not acknowledge after the error checking. EOT (End of Transmission) Indicates that a station has no data to transmit. 13 14 frame formats ACK0, ACK1 (positive Acknowledgements) ACK0 ackowledges 'even' numbered blocks (and as a positive response to a line bid) and ACK1 acknowledges 'odd' numbered blocks. DLE EOT (Mandatory Disconnect) Used on a dial-up line to indicate that the dialing unit is hangup and an instruction for the receiving unit to do the same. 15 Message blocks of BiSync have the following format: Control Frame Data Frame Every package that is transmitted is packed between an STX and an ETX character, followed by one (LRC-check) or two (CRC-check) BCCs (Block Check Character). After this (and the check on the receiving side) the receiver will send an ACK. 16

synchronization The beginning of a transmission can be started with a leading PAD (01010101) character. What must follow are at least 2 SYN characters. For bit synchronization: uses PAD character before each block of characters (frame). For character synchronization: uses two or more SYN (01101000) characters before each frame. 17 Receiver detects SYN character Direction of transmission SYN SYN SYN Receiver in character synchronization Time 00 011010000110100001101000010000000110 Receiver enters hunt mode STX Frame contents Once the receiver has obtained Bit synchronisation it enters what is known as the Hunt Mode. It starts to interpret the received bit stream in a window of eight bits as each new bit is received. In this way it checks whether the last eight bits were equal to a SYN character (to find the start of next byte) 18 synchronization transmission modes Once in Byte Synchronization, the receiver checks for a STX or SOH character, indicating start of text/header. Once synchronisation has been achieved, SYN (01101000) characters will be continuously sent when data is not being transmitted to ensure that the sender and receiver remain synchronised at both bit and byte level. The trailing PAD character assures that the transmission is held long enough for the last critical character to have been received (usually an "FF all 1 s character). 19 The sending of Before information is send it might be necessary to send a couple of that sets the device in the right mode, like a printer. To indicate that this 'special' information is being send it is preceded by a SOH character. The sending of data Next to the sending of plain ASCII or EBCDIC text, there is also the possibility of sending binary data. To realize this, data is sent in a so called 'transparency-mode'. Which means that every transmission control character is preceded by a DLE character. 20

point to point control frames Control Frames Question: PAD SYN SYN ENQ PAD (can I send now?) Answer: PAD SYN SYN ACK0 PAD (if ready to receive) PAD SYN SYN NAK PAD (if not ready to receive) PAD SYN SYN WACK PAD (temporarily busy, try later). The requesting station will reply with another ENQ After data is sent, line is freed up by sender with PAD SYN SYN EOT PAD Three seconds later, either party can ENQ multipoint control frames Polling & Selecting: master sends PAD SYN SYN (addr) ENQ PAD addr is address of terminal or cluster controller The polled/selected station can respond several ways: If anything waiting to send to host: PAD SYN SYN SOH (Header) STX (Data) ETX BCC BCC PAD PAD SYN SYN EOT PAD (Finished sending) PAD SYN SYN STX ENQ PAD (give me 2 seconds to get ready and then I'll start sending, but don't give the line to someone else) 21 22 multipoint control frames The polled/selected station can respond several ways: If no data waiting (in the station) to send to host: PAD SYN SYN ACK0 PAD (ready to receive) PAD SYN SYN NAK PAD (not ready to receive) PAD SYN SYN WACK PAD (temporarily busy, try again later) other transmission controls Receiver delay If the slave can't cope with the speed of the master is can send a WACK to delay the sending of data to prevent buffer overflows. Sender delay If the master station can't present it's data as fast as the receiving end can it uses a TTD (Temporary Text Delay) character to hold the line (to overcome the non-activity time-out of the slave). Actually a TTD is an illegal sequence of characters (STX, ENQ) on which the slave responds with a NAK. 23 24

other transmission controls Abort To abort a block that is already partially sent, the master sends ENQ, on this 'block abort' the slave responds with a NAK and drops all already received data (from this block). If the master sends a EOT before a ETX is received by the station it means a 'station abort. The slave then has a possibility to become master, otherwise the connection is terminated. 25