107
Basic Communications Systems Class 3

Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Embed Size (px)

Citation preview

Page 1: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Basic Communications

Systems

Class 3

Page 2: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Today’s Class Topics Interfacing

RS-232 X.21 Asynchronous vs. Synchronous

Multiplexing Frequency Division Multiplexing Time Division Multiplexing Wavelength Division Multiplexing

Errors Detecting Errors Correcting Errors

Page 3: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

InterfacingConnecting a device such as a modem (or DCE - data circuit-terminating equipment or data communicating equipment) to a computer (or DTE - data terminal equipment).

The connections between the DTE and DCE are the interchange circuits.

Page 4: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 5: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interface StandardsMany different groups contribute to interface standards:

International Telecommunications Union (ITU)

Electronics Industries Association (EIA)

Institute for Electrical and Electronics Engineers (IEEE)

International Organization for Standards (ISO)

American National Standards Institute (ANSI)

Page 6: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interface StandardsAll interface standards consist of four components:

1. The electrical component

2. The mechanical component

3. The functional component

4. The procedural component

Page 7: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interface StandardsThe electrical component deals with voltages, line capacitance, and other electrical characteristics.

The mechanical component deals with items such as the connector or plug description. A standard connector is the ISO 2110 connector, also known as DB-25.

Page 8: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 9: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interface StandardsThe functional component describes the function of each pin or circuit that is used in a particular interface.

The procedural component describes how the particular circuits are used to perform an operation.

For example, the functional component may describe two circuits, Request to Send and Clear to Send. The procedural component describes how those two circuits are used so that the DTE can transfer data to the DCE.

Page 10: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 11: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 12: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

RS-232 and EIA-232EAn older interface standard designed to connect a device such as a modem to a computer or terminal.

Originally RS-232 but has gone through many revisions.

The electrical component is defined by V.28, the mechanical component is defined by ISO 2110, and the functional and procedural components are defined by V.24.

Page 13: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing
Page 14: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

X.21Another interface standard that was designed to replace the aging RS-232.

Currently popular in Europe and with ISDN connections.

Each circuit in the X.21 standard can contain many different signals.

Since each circuit can transmit different signals, the combination of signals on the four circuits is much larger than if each circuit performed only a single function.

Page 15: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 16: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interfacing a Computer and a PeripheralFirewire - A bus that connects peripheral devices such as wireless modems and high speed digital video cameras to microcomputers.

Designated as IEEE 1394.

Firewire supports asynchronous connections and isochronous connections (provides a guaranteed data transport at a pre-determined rate).

Page 17: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Interfacing a Computer and a PeripheralUniversal Serial Bus (USB) - Modern standard for interconnecting modems and other peripheral devices to microcomputers.

Support plug and play.

USB can daisychain multiple devices.

Like Firewire, USB is a high speed connection.

Page 18: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Asynchronous ConnectionsA type of connection defined at the data link layer.

To transmit data from sender to receiver, an asynchronous connection creates a one-character package called a frame.

Added to the front of the frame is a Start bit, while a Stop bit is added to the end of the frame.

An optional parity bit can be added to the frame which can be used to detect errors.

Page 19: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 20: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 21: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Synchronous ConnectionsA second type of connection defined at the data link layer.

A synchronous connection creates a large package (frame) that consists of header and trailer flags, control information, optional address information, error detection code (checksum), and the data.

A synchronous connection is more elaborate but transfer data in a more efficient manner.

Page 22: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 23: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Half Duplex, Full Duplex, and Simplex ConnectionsA half duplex connection transmits data in both directions but in only one direction at a time.

A full duplex connection transmits data in both directions and at the same time.

A simplex connection can transmit data in only one direction.

Page 24: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Terminal-to-Mainframe Computer ConnectionsA point-to-point connection is a direct, unshared connection between a terminal and a mainframe computer.

A multipoint connection is a shared connection between multiple terminals and a mainframe computer.

The mainframe is called the primary, and the terminals are called the secondaries.

Page 25: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 26: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Terminal-to-Mainframe Computer ConnectionsTo allow a terminal to transmit data to a mainframe, the mainframe must poll the terminal.

Two basic forms of polling include roll-call polling and hub polling.

In roll-call polling, the mainframe polls each terminal in a round-robin fashion.

In hub polling, the mainframe polls the first terminal, and this terminal passes the poll onto the next terminal.

Page 27: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 28: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Making Computer Connections In ActionThe back panel of a personal computer has many different types of connectors, or connections:

RS-232 connectors

USB connectors

Parallel printer connectors

Serial port connectors

Page 29: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 4

Page 30: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Chapter 5

Multiplexing : Sharing a Medium

Data Communications andComputer Networks: A Business User’s Approach

Page 31: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

IntroductionUnder the simplest conditions, a medium can carry only one

signal at any moment in time.

For multiple signals to share one medium, either

(a) the medium must somehow be divided, giving each signal a portion of the total bandwidth, OR

(b) Multiple signals must be combined into a single signal

The current techniques that can accomplish this include frequency division multiplexing, time division multiplexing, and wavelength division multiplexing.

Page 32: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Frequency Division Multiplexing (FDM)Assignment of non-overlapping frequency ranges to each “user” or signal on a medium.

A multiplexor accepts multiple analog inputs inputs and assigns frequencies to each device. Modulation is used to move input signals into the assigned frequency ranges.

The multiplexor is attached to a high-speed communications line. A corresponding demultiplexor on the other end of the line separates the multiplexed signals.

FDM is only used with analog signals

Page 33: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 34: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Frequency Division MultiplexingAnalog signaling is used to transmit the signals.

Broadcast radio and television, cable television, and the AMPS cellular phone systems use frequency division multiplexing.

This technique is the oldest multiplexing technique.

Since it involves analog signaling, it is more susceptible to noise.

Page 35: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Time Division MultiplexingSharing of the signal is accomplished by dividing available transmission time on a medium among users.

Digital signaling is used exclusively.

Time division multiplexing comes in two basic forms:

Synchronous time division multiplexing, and

Statistical, or asynchronous time division multiplexing.

Page 36: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Synchronous Time Division MultiplexingThe original time division multiplexing. Assigns a static fixed bandwidth (in bps) to each input device.

The multiplexor accepts input from attached devices in a round-robin fashion and transmits the data in a never ending pattern.

T1 and ISDN telephone lines are common examples of synchronous time division multiplexing.

Page 37: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 38: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Synchronous Time Division MultiplexingIf one device generates data at a faster rate than other devices, then the multiplexor must sample the incoming data stream from that device more often than it samples the other devices.

If a device has nothing to transmit, the multiplexor will still insert a piece of data (typically just 0 bits) from that device into the multiplexed stream as a placeholder.

Page 39: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 40: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 41: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

So that the receiver may stay synchronized with the incoming data stream, the transmitting multiplexor can insert 1s and 0s into the data stream that act as synchronization bits. Receiver looks for synch bits to make sure it stays on track

Page 42: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Digital Carrier Systems

Carrier Systems: Standard multiplexed digital trunks

developed by Bell System starting in early 1960s.

All use Synchronous Time Division Multiplexing to derive multiple digital voice channels (64 Kbps) on a high-speed digital circuit.

Page 43: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

T-Carrier Systems

Service Circuit Bit Rate # VoiceChannels

DS0 64 Kbps 1

DS1 T1 1.544 Mbps 24

DS2 T2 6.312 Mbps 96

DS3 T3 44.736 Mbps 672

DS4 T4 274.176 Mbps 2016

Page 44: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

The T1 System T1 was the first T-carrier system

deployed by the Bell System (in 1962) Carries 24 digital signals of 64 Kbps

each. Total Bit Rate: 1.544 Mbps:

Digital Information: 1.536 Mbps Framing Bits: 8 Kbps

T1 multiplexor is called a channel bank.

Page 45: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

T1 uses TDM

T1 uses TDM to share the circuit among 24 channels

T1 multiplexor allocates exactly one byte per frame to each time slot

Each time slot carries exactly 8*8000 = 64 Kbps of bandwidth

Bandwidth is pre-reserved even if no data is currently being sent

Page 46: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Channel BanksAnalogSwitch

AnalogSwitch

T-1 TrunkRepeater Repeater

T-1Channel

Bank

T-1Channel

Bank

......

24 AnalogVoice Channels

T-1 Channel Bank converts between 24 analog voice channels and a single T-1 trunk. Digitizes 24 voices (codec function) Combines 24 DS0 signals into a DS1 signal

(multiplexing function)

Page 47: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

T1 Details Bipolar Representation

T1 uses Bipolar Coding to represent 1 and 0 bits

‘1’ bit represented by alternating +3 volt, -3 volt pulses

‘0’ bits represented by no voltage Framed Format

T1 transmits 8000 frames per second, 193 bits per frame (8000 * 193 = 1,544,000).

Page 48: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Bipolar Representation

0 0 1 1 0 1 0 0 0 1Data

+3V

-3V

Voltage

Page 49: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

T1 Frame Format

1 b it 8 b its 8 b its8 b its8 b its

F DS0 #1 DS0 #24DS0 #3DS0 #2 . . .

Each DS0 called a time slot 8000 frames/sec * 8 bits/slot = 64 Kbps 24 * 8 + 1 = 193 bits/frame 8000 frames/sec * 193 bits/frame = 1.544 Mbps 8000 Framing bits sent per second

Page 50: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Synchronous Optical Network(SONET)

The SONET Hierarchy is a more modern digital infrastructure than T-carriers.

Developed in 1980s by BellCore Also uses Synchronous Time Division

Multiplexing to deliver channels that are multiples of 64 Kbps.

Designed to only be used over high-quality fiber optic transmission systems.

Page 51: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

SONET Systems

Service Circuit Bit Rate # VoiceChannels

STS-1 OC-1 51.84 Mbps 672

STS-3 OC-3 155.52 Mbps 2016

STS-12 OC-12 622.08 Mbps 8064

STS-24 OC-24 1.244 Gbps 16,128

… … … …

Page 52: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

ISDN

The Idea: Provides a fully-digital signal between

customer and telephone network over current telephone lines.

Uses Synchronous Time Division Multiplexing to provide customer with three separate digital channels at the same time.

Page 53: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

ISDN Basic Rate Interface 3 data channels are sent in one

digital signal using Synchronous Time Division Multiplexing: 2 B-channels (64-Kbps) used for

digitized voice 56/64 Kbps dial-up data channels

1 D-channel (16-Kbps) used for Intelligent digital signaling messages

carrying Caller ID, call parameters, etc. Packet-switched data transmission

Page 54: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

ISDN

ISDN Framing Transmit 4000 frames per second Each frame contains

16 bits for B channel 1 16 bits for B channel 2 4 bits for D channel

Resulting channel bandwidths: B-channels are 4000 * 16 = 64 Kbps D-channel is 4000 * 4 = 16 Kbps

Page 55: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

The ISDN multiplexor stream is also a continuous stream of frames. Each frame contains various control and sync info.

Page 56: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

BRI Applications Work-at-Home: Simultaneously use

1 B-channel for voice call 1 B-channel for dial-up 64 Kbps data to

mainframe X.25 data transfer over D-channel

Internet Access up to 128 Kbps using both B-channels

Low-cost Business Videoconferencing

Low-speed dial-up LAN Interconnection

Page 57: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Statistical Time Division MultiplexingA statistical multiplexor transmits only the data from active workstations.

If a workstation is not active, no space is wasted on the multiplexed stream.

A statistical multiplexor accepts the incoming data streams and creates a frame containing only the data to be transmitted.

Page 58: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 59: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

To identify each piece of data, an address is included.

Page 60: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

If the data is of variable size, a length is also included.

Page 61: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

The transmitted frame contains a collection of data groups.

Page 62: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Packet Switching = Statistical Time Division

Multiplexing

A Packet Switch (or router) acts as a statistical time division multiplexor, allowing multiple devices to share a single physical line by carrying data packets for each one in turn when it transmits.

Page 63: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Packet Switching = Statistical Time Division

Multiplexing

CustomerPacketSwitch

CSU

CarrierPacketSw itch

CarrierPacketSw itch

Access L ine:Shared by

M ultip le devicesat Custom er site

Carrier Data T runk:Shared by

M ultip le custom ersof this carrier netw ork

Page 64: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Dense Wavelength Division MultiplexingDense wavelength division multiplexing multiplexes multiple data streams onto a single fiber optic line.

Different wavelength lasers (called lambdas) transmit the multiple signals.

Each signal carried on the fiber can be transmitted at a different rate from the other signals.

Page 65: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 66: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 5

Page 67: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing
Page 68: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Chapter 6

Errors, Error Detection, and Error Control

Data Communications andComputer Networks: A Business User’s Approach

Page 69: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

IntroductionNoise is always present.

If a communications line experiences too much noise, the signal will be lost or corrupted.

Communication systems should check for transmission errors.

Once an error is detected, a system may perform some action.

Some systems perform no error control, but simply let the data in error be discarded.

Page 70: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

White NoiseAlso known as thermal or Gaussian noise

Relatively constant and can be reduced.

If white noise gets too strong, it can completely disrupt the signal.

Page 71: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 72: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Impulse noiseOne of the most disruptive forms of noise.

Random spikes of power that can destroy one or more bits of information.

Difficult to remove from an analog signal because it may be hard to distinguish from the original signal.

Impulse noise can damage more bits if the bits are closer together (transmitted at a faster rate).

Page 73: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 74: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 75: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

CrosstalkUnwanted coupling between two different signal paths.

For example, hearing another conversation while talking on the telephone.

Relatively constant and can be reduced with proper measures.

Page 76: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 77: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

EchoThe reflective feedback of a transmitted signal as the signal moves through a medium.

Most often occurs on coaxial cable.

If echo bad enough, it could interfere with original signal.

Relatively constant, and can be significantly reduced.

Page 78: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 79: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

JitterThe result of small timing irregularities during the transmission of digital signals.

Occurs when a digital signal is repeater over and over.

If serious enough, jitter forces systems to slow down their transmission.

Steps can be taken to reduce jitter.

Page 80: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 81: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

AttenuationThe continuous loss of a signal’s strength as it travels through a medium.

Page 82: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error PreventionTo prevent errors from happening, several techniques may be applied:

- Proper shielding of cables to reduce interference

- Telephone line conditioning or equalization

- Replacing older media and equipment with new, possibly digital components

- Proper use of digital repeaters and analog amplifiers

- Observe the stated capacities of the media

Page 83: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error DetectionDespite the best prevention techniques, errors may still happen.

To detect an error, something extra has to be added to the data/signal. This extra is an error detection code.

Let’s examine two basic techniques for detecting errors: parity checking, and cyclic redundancy checksum.

Page 84: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Parity ChecksSimple parity - If performing even parity, add a parity bit such that an even number of 1s are maintained.

If performing odd parity, add a parity bit such that an odd number of 1s are maintained.

For example, if the character 1001010 is to be sent, using even parity, a parity bit = 1 would be added to the character.

If the character 1001011 is to be sent, using even parity, a parity bit = 0 would be added to the character.

Page 85: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Parity Checks – what about 2 errors?What happens if the character 10010101 (parity bit is the last bit) experiences two bit errors and the first two 0s accidentally become two 1s?

Thus, the following character is received: 11110101.

Will there be a parity error? NO.

Problem: Simple parity only detects even numbers of bits in error.

Page 86: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Parity ChecksLongitudinal parity detects more errors by adding a row of parity bits after a block of characters.

The row of parity bits is actually a parity bit for each “column” of characters.

The row parity bits plus the column parity bits add a greater redundancy to a block of characters.

Page 87: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 88: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 89: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Parity ChecksBoth simple parity and longitudinal parity do not catch all errors.

Simple parity only catches odd numbers of bit errors.

Longitudinal parity catches errors if an odd number of bit errors occur in any row OR any column.

Longitudinal parity also requires many check bits to be added to a block of data.

We need a better error detection method. Cyclic Redundancy Checksum

Page 90: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Cyclic Redundancy ChecksumThe CRC error detection method treats the packet of data to be transmitted as a large polynomial.

Both transmitter and receiver must know the same generating polynomial.

The transmitter takes the message polynomial and divides it by the generating polynomial. The quotient is discarded but the remainder is placed in a CRC data field in the message trailer.

Page 91: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Cyclic Redundancy ChecksumThe message is transmitted to the receiver.

The receiver divides the message (including CRC field at the end) by the same generating polynomial.

If the remainder equals zero then there was no error during transmission!

If the remainder does not equal zero, there was an error during transmission!

Page 92: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

CRC AdvantagesCRC calculation can easily be implemented in hardware, so this operation requires no processor time at sender or receiver.

CRC does not generate much overhead. It adds 2 bytes or 4 bytes to a message (which may contain thousands of bytes of data).

CRC catches the vast majority of all possible errors that can occur on a communications line!!

Page 93: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 94: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlOnce an error is detected, what is the receiver going to do?

1. Do nothing

2. Return an error message to the transmitter

3. Fix the error with no further help from the transmitter

Page 95: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlDo nothing (discard the data)

Seems like a strange way to control errors but some Data Link (layer 2) protocols, such as Frame Relay, and some Network Layer (layer 3) protocols, such as the Internet Protocol (IP), perform this type of error control.

The idea is that we do not want to slow down our network by correcting errors in the network equipment.

The error will eventually be resolved through a timeout and retransmission request that will be sent by higher-level software (such as Transport Layer).

Page 96: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlReturn a message to the transmitter

This method has three basic formats:

1. Stop-and-wait ARQ

2. Go-back-N ARQ

3. Selective-reject ARQ

“ARQ” stands for “Automatic Repeat Request” and indicates that errors are resolved by retransmitting the data again.

Page 97: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlStop-and-wait ARQ is the simplest of the error control protocols.

A transmitter sends a frame then stops and waits for an acknowledgment.

If a positive acknowledgment (ACK) is received, the next frame is sent.

If a negative acknowledgment (NAK) is received, the same frame is transmitted again.

Page 98: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlUnder Stop-and-wait ARQ, the transmitter also starts a timer each time a data frame is transmitted.

If the transmitter sees NO response (ACK or NAK) after a certain timeout period, it will assume that something went wrong and it will retransmit the data frame.

Page 99: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 100: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlGo-back-N ARQ and selective reject are more efficient protocols.

They assume that multiple frames are in transmission at one time (sliding window protocols).

A sliding window protocol allows the transmitter to send up to the window size frames before receiving any acknowledgments.

When a receiver does acknowledge receipt, the returned ack contains the number of the frame expected next.

Page 101: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 102: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlUsing the go-back-N ARQ protocol, if a frame arrives in error, the receiver can ask the transmitter to go back to the Nth frame and retransmit it.

After the Nth frame is retransmitted, the sender resends all subsequent frames.

Page 103: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlSelective-reject ARQ is the most efficient error control protocol.

If a frame is received in error, the receiver asks the transmitter to resend ONLY the frame that was in error.

Subsequent frames following the Nth frame are not retransmitted.

Figure 6-10 shows a normal transmission of frames with no errors, while Figures 6-11 and 6-12 show examples of errors.

Page 104: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 105: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 106: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Page 107: Basic Communications Systems Class 3. Today’s Class Topics Interfacing RS-232 X.21 Asynchronous vs. Synchronous Multiplexing Frequency Division Multiplexing

Data Communications and Computer Networks Chapter 6

Error ControlForward Error Correction

For a receiver to correct the error with no further help from the transmitter requires a large amount of redundant information accompany the original data.

This redundant information allows the receiver to determine the error and make corrections.

This type of error control is often called forward error correction.