Local Asynchronous Communication

Slides:



Advertisements
Similar presentations
Data Communication Topics to be discussed:  Data Communication Terminology.  Data Transmission Signals.  Data Transmission Circuits.  Serial & Parallel.
Advertisements

1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
1/15 KLKSK Pertemuan III Analog & Digital Data Shannon Theorem xDSL.
Chapter 3 - Transmission Media Basic Idea Transmission media Copper wires Glass fibers Radio Microwave Infrared Laser Choosing a medium Media in use at.
RS-232 Communications. Why Serial Communications? Serial communication is the most simplistic form of communication between two devices. It’s pretty intuitive.
Lab 2 COMMUNICATION TECHNOLOGY II. Capacity of a System The bit rate of a system increases with an increase in the number of signal levels we use to denote.
Chapter 3 Data and Signals
1 Rick Graziani Local Asynchronous Communications (RS-232)
Chapter 2 Data Communication Concepts Code Transmission Signal Modulation Service.
CS335 Networking & Network Administration Tuesday, April 6.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Transmission Modes Different ways of characterizing the transmission.
Module 3.0: Data Transmission
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
COMP3221: Microprocessors and Embedded Systems
Transmission Modes Different ways of characterizing the transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
Alogrithm Analysis 實踐資管 Wang-Jiunn Cheng 2004 Computer Networks (CS422) Douglas Comer Computer Science Department Purdue University West Lafayette, IN.
Lecture 1 Professor: Dr. Miguel Alonso Jr.. Outline Intro to the History of Data Communications A Basic Communication System Elements of Microwave and.
Analog and Digital Transmission Interfaces and Multiplexing (Physical Layer) Lita Lidyawati 2012.
Chapter 8 COMMUNICATION AND COMPUTER NETWORK
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Chapter 2 Basic Communication Theory Basic Communications Theory w Understand the basic transmission theory, and figure out the maximum data rate. w.
Data Transmission The basics of media, signals, bits, carries, and modems (Part II)
1 Chapter 4-6 Signals, Media, And Data Transmission.
1 Long-Distance Communication. 2 Illustration of a Carrier Carrier –Usually a sine wave –Oscillates continuously –Frequency of carrier fixed.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
Communication Systems I CPE 313: Micro Processors and Interfacing.
1 Ch 5 Local Asynchronous Communication (RS-232).
Data Communications Introduction and Review. Transmission Media Copper Wires Copper Wires Low resistance. Electrical signal produces miniature radio station.
Line Coding, Modem, RS232 interfacing sequences.
Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
02 – Performance Basics 1CS Computer Networks.
BZUPAGES.COM 4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
FUNDAMENTALS OF NETWORKING
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 6 Physical Layer.
CSI 4118Fall Part 1.1 Signals, Media, And Data Transmission.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
COMPUTER NETWORKS Lecture-3 Husnain Sherazi. Review Lecture 2  Resource Sharing  Growth of the Internet – Linear Scale – Log Scale  Tools for Probing.
Powerpoint Templates Computer Communication & Networks Week # 04 1 Lecture only.
Week 7 Managing Telecommunications & Networks. Effective communications are essential to organizational success Define the terms communications and telecommunications.
Channel Capacity Bandwidth – In cycles per second of Hertz – Constrained by transmitter and medium Data rate – In bits per second – Rate at which data.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
COMPUTER NETWORKS CS610 Lecture-3 Hammad Khalid Khan.
RS-232 Communications.
6.1 Communication Methods
RS-232 Communications.
Local Asynchronous Communication (RS-232)
Long-Distance Communication (Carriers, Modulation, And Modems)
Signals, Media, And Data Transmission
Signals, Media, And Data Transmission
Chapter 6 Transmission of Digital Data Interfaces and Modems
Presentation transcript:

Local Asynchronous Communication CS442

Bitwise Data Transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding energy back into bits Energy can be electric current, radio, infrared, light, smell, etc. Transmitter and receiver must agree on encoding scheme and transmission timing

Asynchronous Transmission One definition of asynchronous: transmitter and receiver do not explicitly coordinate each data transmission Transmitter can wait arbitrarily long between transmissions Used, for example, when transmitter such as a keyboard may not always have data ready to send Asynchronous may also mean no explicit information about where data bits begin and end E.g. when we send individual ASCII characters

Using Electric Current to Send Bits Simple idea - use varying voltages to represent 1s and 0s One common encoding use negative voltage for 1 and positive voltage for 0 In following figure, transmitter puts positive voltage on line for 0 and negative voltage on line for 1

Transmission Timing Problems Encoding scheme leaves several questions unanswered: How long will voltage last for each bit? How soon will next bit start? How will the transmitter and receiver agree on timing? Later : Self-clocking codes (e.g. Manchester Encoding) Standards specify operation of communication systems Devices from different vendors that adhere to the standard can interoperate Example organizations: International Telecommunications Union (ITU) Electronic Industries Association (EIA) Institute for Electrical and Electronics Engineers (IEEE)

RS-232 Standard for transfer of characters across copper wire Produced by EIA Full name is RS-232-C RS-232 defines serial, asynchronous communication Serial - bits are encoded and transmitted one at a time (as opposed to parallel transmission) Asynchronous - characters can be sent at any time and bits are not individually synchronized

Details of RS-232 Components of standard: Connection must be less than 50 feet Data represented by voltages between +15v and -15v 25-pin connector, with specific signals such as data, ground and control assigned to designated pins Specifies transmission of characters between, e.g., a terminal and a modem Transmitter never leaves wire at 0v; when idle, transmitter puts negative voltage (a 1) on the wire

Identifying asynchronous characters Transmitter indicates start of next character by transmitting a one Receiver can detect transition as start of character Extra one called the start bit Transmitter must leave wire idle so receiver can detect transition marking beginning of next character Transmitter sends a zero after each character Extra zero call the stop bit Thus, character represented by 7 data bits requires transmission of 9 bits across the wire

Start, Stop Bits Typically one of the data bits might be a parity bit

Timing Transmitter and receiver must agree on timing of each bit Agreement accomplished by choosing transmission rate Measured in bits per second Detection of start bit indicates to receiver when subsequent bits will arrive Hardware can usually be configured to select matching bit rates Switch settings Software Autodetection

Transmission Rates Baud rate measures number of signal changes per second Bits per second measures number of bits transmitted per second In RS-232, each signal change represents one bit, so baud rate and bits per second are equal If each signal change represents more than one bit, bits per second may be greater than baud rate This is the case with modems nowadays! More on this when we look at modulation

Framing Start and stop bits represent framing of each character If transmitter and reciver are using different speeds, stop bit will not be received at the expected time Problem is called a framing error RS-232 devices may send an intentional framing error called a BREAK

Duplex Two endpoints may send data simultaneously - full-duplex communication Requires an electrical path in each direction If only one endpoint may send data – half-duplex communications or simplex Pin 2 - Receive (RxD) Pin 3 - Transmit (TxD) Pin 4 - Ready to send (RTS) Pin 5 - Clear to send (CTS) Pin 7 - Ground

Limitations on Transmission Limitations on wires makes waveforms look like: Longer wire, external interference may make signal look even worse RS-232 standard specifies how precise a waveform the transmitter must generate, and how tolerant the receiver must be of imprecise waveform

Channel Capacity Data rate Bandwidth In bits per second Rate at which data can be communicated Bandwidth In cycles per second, or Hertz Amount of bandwidth constrained by transmitter and medium (and the feds!) For digital data: Want as high a data rate as possible given some slice of bandwidth! Limited by the error rate

Nyquist Bandwidth(1) If the rate of signal transmission is 2B then a signal with frequencies no greater than B is sufficient to carry the signal rate Converse: Given a bandwidth of B, the highest signal rate that can be carried is 2B Ex: Given 3000Hz (typical on phone lines), the capacity C of the channel is : C=2B = 6000bps

Nyquist Bandwidth(2) Wait! But given about 3000Hz our modems go much faster than 6000bps. How? The previous capacity assumes a binary signal element. If a signal element can represent more than one bit, the formulation becomes: C=2B(log2M) ; M = # of signal elements If M=32, we get C=30,000bps

Shannon’s Capacity Shannon’s capacity includes the concept of error rates. At a given noise level, the higher the data rate, the higher the error rate. This is a theoretical maximum! Signal to Noise Ratio: SNR = SignalPower/NoisePower Ratio measured at the receiver SNRdb = 10log10(SNR) SNR of 100 = 20 dB SNR of 1000 = 30 dB Capacity: C = B*log2(1+SNR)

Shannon Capacity Examples If voice telephone has a SNR of 30 dB and bandwidth of 3000 Hz: C = 3000 log2(1 + 1000) = 30,000 bps If our LAN technology has a SNR=251, B = 1Mhz C=106*log2(252) = 8Mbps Using Nyquist’s formula, the number of symbols we would need to transmit this data per signaling element: 8*106 = 2*106*log2M M = 24 = 16