King Fahd University of Petroleum & Minerals Computer Engineering Dept

Similar documents
ANALOG AND DIGITAL PHYSICAL INTERFACES

NETWORK. TE = Terminal Equipment (DTE - Data Terminal Equipment) NT = Network - Terminating Equipment (DCE - Data Circuit - Terminating Equipment)

King Fahd University of Petroleum & Minerals Computer Engineering Dept

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

9.4. Synchronization:

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

Concept of Serial Communication

Lecture 3 Data Link Layer - Digital Data Communication Techniques

ROM/UDF CPU I/O I/O I/O RAM

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

SEN366 Computer Networks

CS601 Data Communication Solved Objective For Midterm Exam Preparation

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

) #(2/./53 $!4! 42!.3-)33)/.!4! $!4! 3)'.!,,).' 2!4% ()'(%2 4(!. KBITS 53).' K(Z '2/50 "!.$ #)2#5)43

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

Data Communications Computer Eng. 3 rd class course Lecturer : Hamid Mousa

Signal Encoding Techniques

CHAPTER 5 TRANSMISSION OF DIGITAL DATA INTERFACES & MODEMS

ECE 4510/5530 Microcontroller Applications Week 6 Lab 5

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

Data Encoding. Two devices are used for producing the signals: CODECs produce DIGITAL signals MODEMs produce ANALOGUE signals

PART 4 DIGITAL METHODS. Chapter 13 Digital Fundamentals. Parallel Data Transfer. Fig Parallel data handshaking

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Alex C. Snoeren

Chapter 5: Modulation Techniques. Abdullah Al-Meshal

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Stefan Savage

Data and Computer Communications

INTERNATIONAL TELECOMMUNICATION UNION DATA COMMUNICATION OVER THE TELEPHONE NETWORK

Data Communication (CS601)

EXPERIMENT NO:-1. OBJECTIVE: To study Basics of serial communication ports and protocols.

TCSS 372 Laboratory Project 2 RS 232 Serial I/O Interface

)454 6 TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

Lecture #3 RS232 & 485 protocols

9600 bps, Dual Modem 170 Card Private Wire Only

Superseded by a more recent version INTERNATIONAL TELECOMMUNICATION UNION

DigiPoints Volume 1 SINE WAVES VA 3.1 SCTE

DigiPoints Volume 1. Student Workbook. Module 2 Modem Overview

Module 3: Physical Layer

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

) ,4)0,%8 $4%$#% ).4%2&!#% &/2 53%2 #,!33%3 05",)# $!4!.%47/2+3 ).4%2&!#%3. )454 Recommendation 8 INTERNATIONAL TELECOMMUNICATION UNION

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

Electronics / Water analogy. Resistor. Inductance. Capacitor. Water Electronics Energy - Energy Pressure - Voltage Flow - Current Volume - Charge

Lecture (06) Digital Coding techniques (II) Coverting Digital data to Digital Signals

DIGITAL DATA COMMUNICATION TECHNIQUES

EIG DNP V3.0 Protocol Assignments

EIA-232 Information. DTE Signal Direction. DCE Signal Direction. Signal EIA

Chapter 4 Digital Transmission 4.1

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

INTERNATIONAL TELECOMMUNICATION UNION

Systems. Roland Kammerer. 29. October Institute of Computer Engineering Vienna University of Technology. Communication in Distributed Embedded

Chapter 9: Serial Communication Interface SCI. The HCS12 Microcontroller. Han-Way Huang. September 2009

RECOMMENDATION ITU-R BT.1302 *

Data Communications and Networking (Module 2)

Interface: Serial EIA RS-232D/CCITT V.24, DCE; RTS/CTS delay 0,8 or 64 ms (user-selectable).

Hello and welcome to today s lecture. In the last couple of lectures we have discussed about various transmission media.

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Digital Transmission (Line Coding) EE4367 Telecom. Switching & Transmission. Pulse Transmission

Channel Concepts CS 571 Fall Kenneth L. Calvert

ITL Basics of Encoding and Wiring

RECOMMENDATION ITU-R BT *

Data transmission - Transmission modes

CSCI-1680 Physical Layer Rodrigo Fonseca

Digital to Digital Encoding

Lecture-8 Transmission of Signals

Encoding and Framing

RF Basics 15/11/2013

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

USER'S MANUAL. Model : K

The HC-5560 Digital Line Transcoder

Electrical signal types

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

EUROPEAN pr ETS TELECOMMUNICATION February 1996 STANDARD

Burst Mode Technology

Computer Networks MCQS MCQs Questions

KiloStream Data Sheet

CPSC Network Programming. How do computers really communicate?

INTERNATIONAL TELECOMMUNICATION UNION

BASIC PARAMETERS FOR THE MEASUREMENT OF ERROR PERFORMANCE AT BIT RATES BELOW THE PRIMARY RATE

Class 4 ((Communication and Computer Networks))

PRODUCT INFORMATION B&B ELECTRONICS. Port-Powered RS-232 Fiber Optic Modem with Handshake Support. Model 9PFLST. Description. RS-232 Connections

DSP4xxFP SA USER S MANUAL. A01561 Rev. A. This Manual covers all configurations of the DSP4xxSA Modem with the Serial Number SA and up.

INTERNATIONAL TELECOMMUNICATION UNION DATA COMMUNICATION NETWORK: INTERFACES

This document is designed to be used in conjunction with the CMX869A data sheet.

PHYSICAL/ELECTRICAL CHARACTERISTICS OF HIERARCHICAL DIGITAL INTERFACES. (Geneva, 1972; further amended)

Serial Communications RS232, RS485, RS422

William Stallings Data and Computer Communications. Chapter 8 Multiplexing. Multiplexing

Basic Communications Theory Chapter 2

Microcontrollers. Serial Communication Interface. EECE 218 Microcontrollers 1

1.0 Introduction. Related Products and Documentation

Chapter 12: Digital Modulation and Modems

Model 4xx. Plug-in Series Of FSK Modems USER GUIDE. (TI) 20 Jan 06 DWG: A GDI COMMUNICATIONS LLC PO Box I-80 Exit 1 Verdi, NV 89439

Sirindhorn International Institute of Technology Thammasat University

Digital Data Communication Techniques

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Online Signature Verification by Using FPGA

This FAQ covers Single Direction use of current loop with transmitting devices.

Transcription:

King Fahd University of Petroleum & Minerals Computer Engineering Dept COE 342 Data and Computer Communications Term 021 Dr. Ashraf S. Hasan Mahmoud Rm 22-144 Ext. 1724 Email: ashraf@ccse.kfupm.edu.sa 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 1 Lecture Contents 1. Asynchronous and Synchronous Transmission 2. Line Configuration a. Topology b. Full/Half Duplex 3. Interfacing a. V.24/EIA-232-F b. ISDN Physical Interface 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 2

Timing Requirement Reception of digital data requires sampling of received signal at receiver Sampling time should be known Clock drift (example): If a receiver clock drifts by 1% every sample time, Then for Tb = 1µsec, total drift after 50 bit times = 50 X 0.01 = 0.5 µsec Hence, instead of sampling at the middle of the bit time, the receiver will sample at the edge of the bit (I.e. receiver is out-of-synch with transmitter clock) For correct reception, receiver clock/carrier should be synchronized with transmitter 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 3 Asynchronous Transmission Exploits: Rx-er can remain for short period in synch with Tx-er Used for short stream of bits data transmitted one character (5 ~ 8 bits) at a time Synchronization is needed to be maintained for the length of short transmission Character is delimeted (start & end) by known signal elements: start bit stop element Rx-er re-synchs with the arrival of new character 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 4

Asynchronous Transmission Simple / Cheap Efficiency: transmit 1 start bit + 8 bit of data +2 stop bits Efficiency = 8/11 = 72% (or overhead = 3/11 = 28%) Good for data with large gaps (e.g. keyboard, etc) Receive idle signal S1 Receive Start bit Receive Stop element S2 S1: receiver in idle state S2: receive is receiving character 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 5 Example: Problem 6-5 6-5: An asynchronous transmission scheme uses 8 bits, an even parity, and a stop element of length 2 bits. What percentage of clock inaccuracy can be tolerated at the receiver with respect to the framing error? Assume that the bit samples are taken at the middle of the clock period. Also assume that at the beginning of the start bit the clock and incoming bits are in phase. 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 6

Example: Problem 6-5- solution An accurate clock will start will start in phase (middle of first bit) and end end in phase (middle of last bit) However, a slow clock (time between two consecutive samples increases) will start in phase but will sample the last bit away from the middle of the actual bit duration for this not to make a mistake it should sample at most at end of the last bit duration For a fast clock (time between two consecutive samples decreases) will start in phase but will sample the last bit before the middle of the actual bit duration for this clock not to make a mistake it should sample at least at beginning of the last bit duration start 1 2 3 4 5 6 7 8 P 2 stop bits Accurate clock slow clock fast clock 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 7 Example: Problem 6-5 (2) - solution Let the bit duration be T. Then a frame is 12T long. Let a clock period be T'. The last bit (bit 12) is sampled at 11.5T'. For a fast running clock, the condition to satisfy is 11.5 T > 11T T T < 11.5 11 = 1.045 f clock < 1.045 f bit For a slow running clock, the condition to satisfy is 11.5 T < 12T T T > 11.5 12 = 0.958 f clock > 0.958f bit Therefore, the overall condition: 0.958 f bit < f clock <1.045 f bit 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 8

Synchronous Transmission What if there is a STEADY STREAM of bits between Tx-er and Rx-er Still use the start/stop bits low efficiency Use synchronous transmission Synchronous Techniques: Provide SEPARATE clock signal Expensive and only good for short distances Depend on data encoding to extract clock info E.g. Manchester encoding 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 9 Synchronous Frame Format Typical Frame Structure 8-bit flag control field data field control field 8-bit flag Preamble bit pattern: Indicates start of frame Data field: data to be exchanged Control fields: convey control information between Tx-er and Rx-er Postamble bit pattern: Indicates end of frame For large data blocks, synchronous transmission is far more efficient than asynchronous: E.g. HDLC frame (to be discussed in Chapter 7): 48 bits are used for control, preamble, and postamble if 1000 bits are used for data efficiency = 99.4% (or overhead = 0.6%) 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 10

Line Configuration Full Duplex: Simultaneous transmission and reception Requires two data paths but not necessarily two physical connections or lines Half Duplex: one direction active only at any one time Topology: Physical arrangement of stations on medium Point-to-Point Multipoint: 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 11 Interfacing Data Terminal Equipment (DTE): terminals or computers Data Circuit Equipment (DCE): modem Two DCEs exchanging data on behalf of DTEs must use exact same protocol 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 12

DTE-DCE Interface Definition Mechanical: physical specification of connection type, dimensions, location of pins, etc Electrical: voltage levels and timing signals used Functional: specify functions that are performed for circuits rx circuit, tx circuit, etc. Procedural: specification of sequence of event for transmitting data based on functional specification Two examples: V.24/EIA-232-F, and ISDN physical interface 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 13 V.24/EIA-232-F Previously known as RS-232 Used to connection DTE to voice-grade modem This is the connection used to connect a PC to an external modem using the COM port 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 14

V.24/EIA-232-F - Mechanical Specification 25-pin connector In most applications far less than 25 pins are used Pin assignment is shown in figure 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 15 V.24/EIA-232-F - Electrical Specification Digital signaling is used on all circuits Depending on the function of the circuit, electrical value is interpreted as binary data or control signal Voltage levels (data/control): Common ground 0 volts < -3 Volts binary 1/OFF signal > +3 Volts binary 0/ON signal Assumes NRZ-L signal Appropriate for R < 20 kb/s and distance < 15 meters 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 16

V.24/EIA-232-F - Functional Specification Table 6.1 Circuits: Data Control Timing Ground There is one primary data circuit per direction full duplex is possible There are secondary data circuits too 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 17 V.24/EIA-232-F - Procedural Specification Defines the sequence in which the various circuits are used for a particular application 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 18

two-way V.24/EIA-232-F - Procedural Specification Examples Example 1: Asynchronous private line modem Two terminals (computers) connected back to back through modems (no telephone network) Interchange Circuits Needed: a. Signal Ground (102) DTE A b. Transmitted Data (103) c. Received Data (104) d. Request to Send (105) e. Clear to Send (106) f. DCE Ready (107) DTE B g. Received Line Signal Detector (109) DCE A DCE B Sequence:(DTE A sends a character to DTE B) 1. When DCE A is ready (e.g. turned 4. DTE A now sends data Transmitted on) DCE Ready (107) ON Data (103) 2. When DTE A has data to send 5. When DCE B receives data Received Request to Send (105) ON Line Signal Detector (109) 3. DCE A responds Clear to Send 6. DCE B deliver data to DTE B (106) ON Received Data (104) 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 19 V.24/EIA-232-F - Procedural Specification Examples (2) Example 2-1: Two terminals exchanging data across a telephone network In addition to previous interchange circuits: -DTE Ready (108.2) -Ring Indicator (125) Modem A rings Modem B - Modem B accepts call 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 20

V.24/EIA-232-F - Procedural Specification Examples (3) Example 2-2: Modem A confirms the connection to DTE A and also generates a carrier for Modem B 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 21 V.24/EIA-232-F - Procedural Specification Examples (4) Example 2-3: Data exchange phase DTE sends data to Modem A Modem A modulate and transmit to Modem B Modem B recovers data and sends to DTE B 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 22

two-way V.24/EIA-232-F - Procedural Specification Examples (5) Example 3: Two terminals connected back-toback through the V.24 interface BUT with no DCEs This is referred to as the NULL modem connection For short distance connections DTE A DTE B 12/15/2002 Dr. Ashraf S. Hasan Mahmoud DTE A DTE 23 B ISDN Physical Interface V.24/EIA232-F provides many functionalities using the large number of circuits (expensive) Build fewer circuits but more logic into DTE and DCE Examples: X.21 standard used to interface to public circuitswitched networks uses 15-pin connection) ISND physical interface uses 8-pin connection 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 24

ISDN Physical Interface (2) ISDN Terminology: TE: Terminal equipment (equivalent to DTE) NE: Network equipment (equivalent to DCE or point of connection to network) Two pins for exchanging data and control for each direction (Note TE and NE need to make the right interpretation of signal!) May allow to transfer power 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 25 ISDN Physical Interface Electrical Specification Balanced Transmission*: Signal transmitted as a current Differential Signaling Binary value direction of current Balanced Transmission is more resistant to interference and produces less noise Basic rate of 192 kb/s Pseudoternary coding: 1 no signal, 0 is +ve/-ve pulse of 750 mv +- 10% Primary rate (two options) 1.544 Mb/s AMI with B8ZS and 2.048 Mb/s AMI with HDB3 * EIA-232 uses UNBALANCED transmission where a single conductor carries the signal, with ground providing the current return path 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 26

Textbook Problems of INTEREST Texbook Problems list: 6-1, 6-2, 6-5, 6-6, 6-8 * EIA-232 uses UNBALANCED transmission where a single conductor carries the signal, with ground providing the current return path 12/15/2002 Dr. Ashraf S. Hasan Mahmoud 27