1 transmission of digital data : interface and modems

40
1 Transmission of Digital Transmission of Digital Data : Data : Interface and Modems Interface and Modems

Upload: beatrix-casey

Post on 17-Jan-2016

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Transmission of Digital Data : Interface and Modems

11

Transmission of Digital Transmission of Digital Data :Data :

Interface and ModemsInterface and Modems

Page 2: 1 Transmission of Digital Data : Interface and Modems

22

Transmission of Digital Data Transmission of Digital Data ::

Interface and ModemsInterface and Modems BackgroundBackground Digital Data TransmissionDigital Data Transmission

– ParallelParallel– SerialSerial

DTE-DCE InterfaceDTE-DCE Interface ModemsModems

Page 3: 1 Transmission of Digital Data : Interface and Modems

33

BackgroundBackground

Encoded Information

Data EncodingInformation

Transmission Process

Signal

+

Communication Link

Page 4: 1 Transmission of Digital Data : Interface and Modems

44

Digital Data TransmissionDigital Data Transmission

Primary concern in data transmissionPrimary concern in data transmission– WiringWiring– Data streamData stream

Send one bit Send one bit Send a group of bitsSend a group of bits

Two modes of sending bit streamsTwo modes of sending bit streams– Parallel modeParallel mode– Serial modeSerial mode

Page 5: 1 Transmission of Digital Data : Interface and Modems

55

Digital Data TransmissionDigital Data Transmission

Data Transmission

Parallel Serial

Synchronous Asynchronous

Page 6: 1 Transmission of Digital Data : Interface and Modems

66

Parallel TransmissionParallel Transmission

Groups of Groups of n n bits bits Send one group at one timeSend one group at one time Use Use n n wires to send wires to send n n bitsbits AdvantageAdvantage

– SpeedSpeed DisadvantageDisadvantage

– Cost (Cost (nn wires to transmit wires to transmit n n bits)bits)– Limited to short distancesLimited to short distances

Page 7: 1 Transmission of Digital Data : Interface and Modems

77

Parallel TransmissionParallel Transmission

Page 8: 1 Transmission of Digital Data : Interface and Modems

88

Serial TransmissionSerial Transmission

One bit at one timeOne bit at one time Requires only one wireRequires only one wire Requires conversion devices at the Requires conversion devices at the

interface between interface between – The sender and the line (parallel to serial)The sender and the line (parallel to serial)– The line and the receiver (serial to The line and the receiver (serial to

parallel)parallel) AdvantageAdvantage

– Low costLow cost

Page 9: 1 Transmission of Digital Data : Interface and Modems

99

Serial TransmissionSerial Transmission

Page 10: 1 Transmission of Digital Data : Interface and Modems

1010

Serial Transmission Serial Transmission (Asynchronous)(Asynchronous)

AsynchronousAsynchronous– The timing of signal is unimportantThe timing of signal is unimportant– Information is retrieved and translated Information is retrieved and translated

upon patternupon pattern– Patterns : grouping bit streams into bytesPatterns : grouping bit streams into bytes

Each group (usually 8) is sent as a unitEach group (usually 8) is sent as a unit– The sendingThe sending device sends each group device sends each group

without regard to a timerwithout regard to a timer

Page 11: 1 Transmission of Digital Data : Interface and Modems

1111

Serial Transmission Serial Transmission (Asynchronous)(Asynchronous)

Page 12: 1 Transmission of Digital Data : Interface and Modems

1212

Serial Transmission Serial Transmission (Asynchronous) (cont.)(Asynchronous) (cont.)

MethodMethod– To alert the receiver :To alert the receiver :

An extra bit (An extra bit (start bit -- 0start bit -- 0) is added to the ) is added to the beginning of each bytebeginning of each byte

One or more extra bits are added to the end of One or more extra bits are added to the end of the bytethe byte

– Stop bitsStop bits -- 1 -- 1 A gap (idle channel/streams of stop bits) is A gap (idle channel/streams of stop bits) is

added at the end of each byteadded at the end of each byte Thus, start bit + stop bit + gap Thus, start bit + stop bit + gap alert the alert the

receiver the begin and end of each byte receiver the begin and end of each byte

Page 13: 1 Transmission of Digital Data : Interface and Modems

1313

Serial Transmission Serial Transmission (Asynchronous) (cont.)(Asynchronous) (cont.)

AdvantageAdvantage– CheapCheap– EffectiveEffective

Example:Example:– Low speed communication Low speed communication

Terminal Terminal computer computer

Page 14: 1 Transmission of Digital Data : Interface and Modems

1414

Serial Transmission Serial Transmission (Synchronous)(Synchronous)

Page 15: 1 Transmission of Digital Data : Interface and Modems

1515

Serial Transmission Serial Transmission (Synchronous)(Synchronous)

Synchronous TransmissionSynchronous Transmission– Bit streams is combined into longer “frame”Bit streams is combined into longer “frame”– A frame may consist of multiple bytesA frame may consist of multiple bytes– No gap between each byte is added into a No gap between each byte is added into a

transmission link transmission link – The receiver has to separate the bit stream into The receiver has to separate the bit stream into

bytes for decoding purposebytes for decoding purpose– Timing is important in synchronous transmissionTiming is important in synchronous transmission– Byte synchronization is performed at the data link Byte synchronization is performed at the data link

layerlayer AdvantageAdvantage

– SpeedSpeed useful for high speed applicationsuseful for high speed applications

Page 16: 1 Transmission of Digital Data : Interface and Modems

1616

DTE-DCE InterfaceDTE-DCE Interface

DTE : Data Terminal EquipmentDTE : Data Terminal Equipment DCE : Data Circuit-terminating EquipmentDCE : Data Circuit-terminating Equipment

DCEDTE DTEDCE

network

Page 17: 1 Transmission of Digital Data : Interface and Modems

1717

DTE-DCE InterfaceDTE-DCE Interface

Sending EndSending End The DTE The DTE

– generates the data and passes them to a generates the data and passes them to a DCEDCE

The DCE The DCE – converts the signal to a format appropriate converts the signal to a format appropriate

to a transmission mediumto a transmission medium– Sends it onto the networkSends it onto the network

Receiving End Receiving End – This process is reversedThis process is reversed

Page 18: 1 Transmission of Digital Data : Interface and Modems

1818

DTEDTE

Includes any unit that functions as a Includes any unit that functions as a source or a destination for binary datasource or a destination for binary data

At the physical layer, it can beAt the physical layer, it can be– A terminalA terminal– A computerA computer– A printerA printer– A fax machine, etc.A fax machine, etc.

DTEs do not communicate with DTEs do not communicate with other other DTE directlyDTE directly

Page 19: 1 Transmission of Digital Data : Interface and Modems

1919

DCEDCE

IncludesIncludes any functional units that any functional units that transmits or receives analog/digital transmits or receives analog/digital signal through a networksignal through a network

At the physical layer, ex. ModemsAt the physical layer, ex. Modems Sending and receiving DCEs must use Sending and receiving DCEs must use

the modulating method (e.g. FSK) the modulating method (e.g. FSK)

Page 20: 1 Transmission of Digital Data : Interface and Modems

2020

DTE-DCE Interface DTE-DCE Interface StandardsStandards

DCEDTE DTEDCE

network

DTE-DCE standards try to define the mechanical, electrical, and functional characteristics of the connection between the DTE and the DCE

Page 21: 1 Transmission of Digital Data : Interface and Modems

2121

EIA-232 InterfaceEIA-232 Interface

Previously called RS-232Previously called RS-232 Defines the mechanical, electrical, and Defines the mechanical, electrical, and

functional characteristics of the functional characteristics of the interface between a DTE and a DCEinterface between a DTE and a DCE

Page 22: 1 Transmission of Digital Data : Interface and Modems

2222

EIA-232EIA-232

Mechanical SpecificationMechanical Specification– InterfaceInterface

25-wire cable25-wire cable Male and female DB-25 pin connector Male and female DB-25 pin connector

attached to either endattached to either end The cable length not > 15 meters (50 feet)The cable length not > 15 meters (50 feet)

Electrical SpecificationElectrical Specification– Defines the voltage levels and the type of Defines the voltage levels and the type of

signal to be transmitted between DTE & DCEsignal to be transmitted between DTE & DCE

Page 23: 1 Transmission of Digital Data : Interface and Modems

2323

EIA-232EIA-232

Sending the DataSending the Data

Page 24: 1 Transmission of Digital Data : Interface and Modems

2424

EIA-232EIA-232

Control and TimingControl and Timing– 4 wires are used for data functions4 wires are used for data functions– 21 wires are reserved for functions like, 21 wires are reserved for functions like,

ControlControl TimingTiming GroundingGrounding TestingTesting etc.etc.

Page 25: 1 Transmission of Digital Data : Interface and Modems

2525

EIA-232EIA-232

Control and TimingA function is considered ON if it transmits a voltage of at least +3 and OFF if it transmits a voltage with a value < -3 volts

Page 26: 1 Transmission of Digital Data : Interface and Modems

2626

EIA-232EIA-232

Functional SpecificationFunctional Specification– DB-25DB-25– DB-9DB-9

Page 27: 1 Transmission of Digital Data : Interface and Modems

2727

EIA-232 : DB-25 (male)EIA-232 : DB-25 (male)

Page 28: 1 Transmission of Digital Data : Interface and Modems

2828

EIA-232 : DB-25 EIA-232 : DB-25

Page 29: 1 Transmission of Digital Data : Interface and Modems

2929

EIA-232 : DB-25 (Control EIA-232 : DB-25 (Control Pins)Pins)

Page 30: 1 Transmission of Digital Data : Interface and Modems

3030

EIA-232 : DB-25 (Timing EIA-232 : DB-25 (Timing Pins)Pins)

Page 31: 1 Transmission of Digital Data : Interface and Modems

3131

EIA-232 : DB-25 (Other Pins)EIA-232 : DB-25 (Other Pins)

Page 32: 1 Transmission of Digital Data : Interface and Modems

3232

EIA-232 : DB-9EIA-232 : DB-9

Many of the pins in DB-25 Many of the pins in DB-25 implementation are not necessaryimplementation are not necessary

A 9-pin version of EIA-232 (called DB-A 9-pin version of EIA-232 (called DB-9) was developed9) was developed

Page 33: 1 Transmission of Digital Data : Interface and Modems

3333

EIA-232 Functioning EIA-232 Functioning ExampleExample

Synchronous

Full-Duplex

Transmission

Page 34: 1 Transmission of Digital Data : Interface and Modems

3434

EIA-232 Functioning EIA-232 Functioning ExampleExample

Page 35: 1 Transmission of Digital Data : Interface and Modems

3535

Null ModemNull Modem

Modems are not needed to connect two Modems are not needed to connect two computers in the same roomcomputers in the same room

Need : an interface to handle the exchangeNeed : an interface to handle the exchange– Readiness establishmentReadiness establishment– Data transferData transfer– Data receiptData receipt– etc.etc.

A standard provided by the EIA to perform A standard provided by the EIA to perform these tasks, called these tasks, called NULL MODEMNULL MODEM

Page 36: 1 Transmission of Digital Data : Interface and Modems

3636

Null ModemNull Modem

Page 37: 1 Transmission of Digital Data : Interface and Modems

3737

Crossing ConnectionsCrossing Connections

Page 38: 1 Transmission of Digital Data : Interface and Modems

3838

Other Interface StandardsOther Interface Standards

IEA-449IEA-449– DB-37/DB-9DB-37/DB-9

RS-423/422RS-423/422 EIA-530EIA-530 Etc.Etc.

Page 39: 1 Transmission of Digital Data : Interface and Modems

3939

ModemsModems

Modulator/demodulatorModulator/demodulator ModulatorModulator

– Converts a digital signal into an analog Converts a digital signal into an analog signal using ASK, FSK, PSK or QAMsignal using ASK, FSK, PSK or QAM

DemodulatorDemodulator– Converts an analog signal into a digital Converts an analog signal into a digital

signalsignal

Page 40: 1 Transmission of Digital Data : Interface and Modems

4040

ModemsModems