COMP467. Local Asynchronous Communication. Goals. Data is usually sent over a single channel one bit at a time.

Similar documents
Communication Limits. Goals. Parity. RS-232 Format

Transmission Impairments

DATA COMMUNICATION. Channel and Noise

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

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

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

CS311: Data Communication Transmission Impairments and Channel Capacity. Assistant Professor Dept. of CSE IIT Jodhpur

Fundamentals of Data and Signals

Data com ch#3 (part 2)

Contents. Telecom Service Chae Y. Lee. Data Signal Transmission Transmission Impairments Channel Capacity

Lecture Fundamentals of Data and signals

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

Lecture 3: Data Transmission

COMP211 Physical Layer

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals

Data Communications & Computer Networks

two computers. 2- Providing a channel between them for transmitting and receiving the signals through it.

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

Encoding and Framing

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

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

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

Basic Concepts in Data Transmission

Module 3: Physical Layer

Data Communications and Networks

Data Communication. Chapter 3 Data Transmission

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

1. What is the bandwidth of a signal that ranges from 40 KHz to 4 MHz? a MHz (4M -40K) b. 36 MHz c. 360 KHz d. 396 KHz

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

Physical Layer: Outline

Chapter 2: Fundamentals of Data and Signals

Chapter 3. Data Transmission

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Physical Layer. Networks: Physical Layer 1

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

Data and Computer Communications Chapter 3 Data Transmission

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

Pulse Code Modulation

Chapter 4 Digital Transmission 4.1

CSCI-1680 Physical Layer Rodrigo Fonseca

Announcements : Wireless Networks Lecture 3: Physical Layer. Bird s Eye View. Outline. Page 1

In this lecture. System Model Power Penalty Analog transmission Digital transmission

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

Physical Layer. Transfers bits through signals overs links Wires etc. carry analog signals We want to send digital bits. Signal

Chapter 4 Digital Transmission 4.1

Outline / Wireless Networks and Applications Lecture 3: Physical Layer Signals, Modulation, Multiplexing. Cartoon View 1 A Wave of Energy

Data Transmission (II)

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

Chapter 5: Modulation Techniques. Abdullah Al-Meshal

When you have completed this exercise, you will be able to determine the frequency response of a

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

Channel Concepts CS 571 Fall Kenneth L. Calvert

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

CS307 Data Communication

DigiPoints Volume 1 SINE WAVES VA 3.1 SCTE

EC 554 Data Communications

Data Communication (CS601)

Chapter 3 Digital Transmission Fundamentals

Course 2: Channels 1 1

IST 220 Exam 1 Notes Prepared by Dan Veltri

Physical Layer. Networked Systems (H) Lecture 3

Lecture 2 Physical Layer - Data Transmission

Chapter 3 Data and Signals

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

ECE 435 Network Engineering Lecture 16

CSE 461 Bits and Links. David Wetherall

Data and Computer Communications. Chapter 3 Data Transmission

Signal Characteristics

CPSC Network Programming. How do computers really communicate?

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

EEE482F: Problem Set 1

Transmission Principles

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

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

1 V NAME. Clock Pulse. Unipolar NRZ NRZ AMI NRZ HDB3

HY448 Sample Problems

Chapter 3 Digital Transmission Fundamentals

Digital signal is denoted by discreet signal, which represents digital data.there are three types of line coding schemes available:

SEN366 Computer Networks

Introduction to LAN/WAN. Physical Layer

Chapter 3 Data Transmission

CSEP 561 Bits and Links. David Wetherall

Summary of Basic Concepts

Module 7 Bandwidth and Maximum Data Rate of a channel

Digital to Digital Encoding

Computer Networks - Xarxes de Computadors

The Physical Layer Outline

ECE 435 Network Engineering Lecture 20

Announcement : Wireless Networks Lecture 3: Physical Layer. A Reminder about Prerequisites. Outline. Page 1

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples.

Lecture 5 Transmission

Chapter 2. Physical Layer

College of information Technology Department of Information Networks Telecommunication & Networking I Chapter DATA AND SIGNALS 1 من 42

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

Chapter 12: Digital Modulation and Modems

CS601 Data Communication Solved Objective For Midterm Exam Preparation

Chapter 3 Data and Signals 3.1

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Transcription:

COMP467 Local Asynchronous Communication Goals Understand the RS-232 transmission format Be able to compute the parity of a byte Understand the difference between baud and bits per second Be able to calculate the maximum possible transmission rate Be able to calculate the maximum transmission rate in the presence of noise The purpose of a network is to send a stream of bits from one node to another The transmitted bits can be text, data, digitized voice or graphics. We will only consider the transmission of binary digital data at this time 8 bit groups are called octets. Data is usually sent over a single channel one bit at a time. A single wire transmits the bits one after another. Some short communication systems, such as printer cables, send multiple bits at a time over multiple parallel wires. Over long distances multiple bits can get out of synch. A single wire is cheaper than multiple wires COMP476 1

Data can be sent synchronously or asynchronously. With asynchronous transmission there is no time relationship between transmission. Once a synchronous transmission starts, another bit is sent at a regular interval. Sender and receiver have to have synchronized clocks. Some systems are bit wise synchronous but asynchronous by byte. Consider sending different voltages on a wire. Bits could be sent by varying the voltage on the line. Positive voltage could represent a 0 bit and negative voltage a 1 bit. In a totally asynchronous system, each bit is sent by an arbitrary length pulse of voltage. Example of a Totally Asynchronous Network Note that very few existing systems actually use this method. It is easy for the receiving side to determine when the next bit arrives and when the signal for that bit is complete There is no fixed transmission speed. Bits are sent as quickly or as slowly as the sending side chooses. COMP476 2

RS-232-C standard An Electronic Industry Association standard for transmitting data over short distances. Also known as ITU V.24 Standards are extremely important in the networking industry. RS-232-C Bit wise synchronous but byte wise asynchronous A 1 bit is sent as -15 volts (MARK) A 0 bit is sent as +15 volts (SPACE). When there is nothing to send, the line is kept at the -15 volt state. Almost RS-232-C RS-232 Format What problems can arise in recognizing bits? Each byte starts with a special 0 bit called a start bit. This is not a data bit. Each byte ends with a non-data 1 bit called the stop bit. There may be 1, 1.5 or 2 stop bits. COMP476 3

Error Detection Frequently another bit is sent every byte to help detect errors. A parity bit is sent that is the XOR of all data bits. When the receiver gets a byte, it computes the parity and compares it to the received parity. An error has occurred if the results are different. Parity can be even, odd, mark, space or none. Parity Example The even parity for the 7 bit ASCII letter Z is: 1 0 1 1 0 1 0 = 0 Overhead Bits sent that are not part of the actual data are overhead. RS-232 has 3 overhead bits, start, stop and parity, for every 8 bits of data. The overhead is 3/11 or 27%. Improving Performance The length of time used to send all bits, including start and stop bits, in RS-232 is the same. If each bit period is 1.0 millisecond, then we can send 1000 bits/second. If the bit period is reduced, more bits can be sent per second. How fast can bits be sent? COMP476 4

Improving Performance Four Possible Transmission States The RS-232 standard sends only one of two values, +15 volts and -15 volts. If the receiver can detect a wider range of values, say +10v, +5v, -5v and -10v, then more data could be sent in each signal. If there are V possible values, then each signal can represent log 2 V bits. Each transmission of one of 4 values would send 2 bits. Buad and Bits/second The Baud rate is the number of states or signals sent every second. If V is greater than 2, then the bit rate is greater than the Buad rate. Systems may have a Buad rate greater or less than the bit/second rate. How Many States to Use If 4 states improves performance, why not 8, 16 or 1024? There is a limit to the number of states that can be detected. Noise makes it difficult to differentiate states that are close to each other. COMP476 5

Bandwidth Nyquist Formula Bandwidth is the range of frequencies that can be sent and received. The human ear functions between 50Hz to 20KHz, so it has a bandwidth of about 19,950Hz. Filters in the telephone system allow only frequencies between 50Hz and 3050Hz for a bandwidth of 3KHz. In 1924 H. Nyquist derived an equation relating bandwidth and maximum data rate max data rate(bits/sec) = 2 * B * log 2 V where: B = bandwidth V = number of different values that can be sent. Nyquist Formula Applies to perfect noiseless channels Gives the absolute maximum speed possible Networks that advertise greater speed should be given the same consideration as perpetual motion machines. Calculator Clue Most calculators don t have a base 2 logarithm function. You can calculate any log base by: log log A B = log X X B A Note that log 10 2 = 0.30103 COMP476 6

Nyquist Formula Example Nyquist Formula Example Consider a telephone line with 3KHz bandwidth and binary signals (v = 2). Max rate = 2 * 3000 * log 2 2 Max rate = 6000 bits/second If you need to transmit 128K bits/second and can send 16 different states, how much bandwidth is required? B transrate = 2*log 2 V B = 16KHz Nyquist Formula Example If a telephone modem can transmit 31.2K bits/sec, how many different states must it be able to send? transrate 2B V = 2 V = 36.76 states Noise In the real world, transmissions are subject to noise and distortion. You can hear noise on a weak radio channel. Noise makes it difficult to distinguish different states. COMP476 7

Noise Shannon Formula Noise is represented as a signal/noise ratio or the ratio of the strength (energy) of the noise to the strength (energy) of the noise. If someone whispers (low signal strength) in a noisy room, it is difficult to hear them. Noise reduces the rate at which data can be transmitted. In 1948 Shannon derived an equation for channels with random thermal noise. max data rate(bits/sec) = B * log 2 (S/N+1) This is a physical law that applies to all communication systems. Space probes that transmit very weak signals send only a few bits / second. Decibels Noise is often measured in decibels (db) db = 10 * log 10 S/N S/N = 10 db/10 Note that the decibel scale is exponential. A good telephone connection has a noise level of about 34-38 db. Shannon Formula with db We can simplify calculations using decibels by combining the equations maxrate = B * log 2 (S/N+1) maxrate = B * log 2 (S/N) ignore +1 if S/N > 1000 maxrate = B * log 2 (10 db/10 ) substitute S/N = 10 db/10 maxrate = B * log 10 (10 db/10 )/log 10 2 change log base maxrate = B * log 10 (10 db )/(10*log 10 2) pull out /10 maxrate = B * db /(10*log 10 2) log & power cancel maxrate = B * db / 3.0103 convert constant COMP476 8

Shannon Formula with db maxrate = B*dB 3.01 Shannon Formula Example If a telephone line has a signal to noise ratio of 34dB, how fast can it transmit data? B* db 3000*34 max rate = = = 33.89 3.01 3.01 This is why the fastest telephone modem upload speed is 31.2K bits/second. 56K modems do not really work at 56,000 bits per second and are subject to the Shannon formula limitations. COMP476 9