1 chapter 6 the data communications interface. 2 data flow: simplex ztransmits in only one direction...

38
1 Chapter 6 The Data Communications Interface

Upload: willa-allen

Post on 23-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

1

Chapter 6The Data Communications Interface

Page 2: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

2

Data Flow: Simplex

Transmits in only one directionrarely used in data communicationse.g., receiving signals from the radio

or TV stationthe sending station has only one

transmitter, the receiving station has only one receiver

Page 3: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

3

Simplex Illustration

Page 4: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

4

Data Flow: Half Duplexdata may travel in both directions, but only

in one direction at a timeprovides non-simultaneous two-way

communicationcomputers use control signals to negotiate

when to send and when to receivethe time it takes to switch between

sending and receiving signals is called turnaround time

Page 5: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

5

Half Duplex Illustration

Page 6: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

6

Data Flow: Full Duplex

complete two-way simultaneous transmission

faster than half-duplex communication because no turnaround time is needed

Page 7: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

7

Full Duplex Illustration

Page 8: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

8

While OSI model is increasingly out of favor in application development, it is still very useful in understanding networking in a conceptual context

Page 9: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

9

ISO’s Open Systems Interconnection (OSI)

Application LayerPresentation LayerSession LayerTransport LayerNetwork LayerData Link LayerPhysical Layer

Page 10: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

10

Physical Layer

Refers to transmission of unstructured bits over physical medium

Deals with characteristics of and access to the physical medium

Page 11: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

11

Data Link Layer

Provides for reliable transfer of information across physical link

Includes: transmission of blocks of data

(“frames”) synchronization error control flow control

Page 12: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

12

Asynchronous & Synchronous TransmissionTiming problems require a mechanism to synchronize the

transmitter and receiverTwo solutions exist

Asynchronous Synchronous

Both methods are concerned with timing issuesHow does the receiver know when the bit period begins

and ends?Small timing difference becomes more significant over

time if no synchronization takes place between sender and receiver

Synchronization occurs on the data link layer

Page 13: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

13

Asynchronous Transmission

Used in serial communication

Data transmitted 1 character at a time

Character format is usually 1 start & 1+ stop bits, plus data of 5-8 bits

Character may include parity bit

Timing needed only within each character

Resynchronization is accomplished with each start bit

Uses simple, cheap technology

Wastes 20-30% of bandwidth

Page 14: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

14

Synchronous Transmission

Used in parallel communication

Large blocks of bits transmitted without start/stop codes

Synchronized by a clock signal or clocking data

Data framed by preamble (opening)/ postamble (closing) bit patterns

More efficient than asynchronous

Overhead typically below 5%

Used at higher speeds than asynchronous

Page 15: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

15

Synchronization Choices

Low-speed terminals and PCs commonly use asynchronous transmission inexpensive

Large systems and networks commonly use synchronous transmission overhead too expensive; efficiency necessary error-checking more important

Page 16: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

16

Digital Interfaces

The point at which one device connects to another

Standards define what signals are sent, and how

Some standards also define the physical connector to be used

Page 17: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

17

Generic Communications Interface Illustration

Page 18: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

18

DTE and DCE

Page 19: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

19

RS-232 and RS-449 It is a physical protocol to interface computers

with modems specify mechanical, electrical, functional,

and procedural interface

Computeror

TerminalModem

Protective Ground (1)

Transmit (2)

Receive (3)

Request to Send (4)

Clear to Send (5)

Data Set Ready (6)

Common Return (7)

Carrier Detect (8)

Date Terminal Ready (20)

Page 20: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

20

RS-232C (EIA 232C)

EIA’s “Recommended Standard” (RS)Specifies mechanical, electrical,

functional, and procedural aspects of the interface

Used for connections between DTEs and voice-grade modems, and many other applications

EIA-Electronics Industries Association

Page 21: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

21

Mechanical Specifications

25-pin connector with a specific arrangement of leads

DTE devices usually have male DB25 connectors while DCE devices have female

In practice, fewer than 25 wires are generally used in applications

Page 22: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

22

V.24/EIA-232-FITU-T v.24Only specifies functional and procedural

References other standards for electrical and mechanical

EIA-232-F (USA) Based on RS-232 Mechanical aspects are defined by ISO 2110 Electrical v.28 Functional v.24 Procedural v.24

ITU-International Telecommunication Union

ISO-International Standards Organization

Page 23: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

23

DB-25 Female

DB-25 Male

RS-232 DB-25 Connectors

DB Connector-Data Bus Connector

Page 24: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

24

RS-232 DB-25 Pinouts

Page 25: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

25

RS-232 DB-9 Connectors

Limited RS-232

Page 26: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

26

RS-422 DIN-8 Found on Macs, some IBM compatible computers,

network processor panels

DIN-8 Male DIN-8 Female

DIN Connector-Deutsche Industrie Norm Connector

Page 27: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

27

Electrical Specifications

Specifies signaling between DTE and DCEUses NRZ-L encoding

Voltage < -3V = binary 1 Voltage > +3V = binary 0 Voltage could be as high as 25 volts

Rated for >20Kbps and <15M greater distances and rates are theoretically

possible, but not necessarily wise

Page 28: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

28

RS-232 Signals (Asynch)

Even Parity

Odd Parity

No Parity

See ASCII Table 3.1, Page 83

Page 29: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

29

Functional Specifications

Specifies the role of the individual circuits

Data circuits in both directions allow full-duplex communication

Timing signals allow for synchronous transmission (although asynchronous transmission is more common)

Page 30: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

30

Procedural Specifications

Multiple procedures are specifiedSimple example: exchange of

asynchronous data on private line Provides means of attachment between

computer and modem Specifies method of transmitting

asynchronous data between devices Specifies method of cooperation for

exchange of data between devices

Page 31: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

31

See Table 6.1, Page 184

For the older RS-232-C standard, some of the pin definitions are:

Pin Number Name (function)

2 TD (Transmitted Data)

3 RD (Received Data)

4 RS (Request to Send)

5 CS (Clear to Send)

6 DSR (Data Set Ready)

20 DTR (Data Terminal Ready)

8 CD (Carrier Detect)

21 SQ (Signal Quality detector)

Page 32: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

32

Dial Up Operation (1)

Page 33: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

33

Dial Up Operation (2)

Page 34: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

34

Dial Up Operation (3)

Page 35: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

35

Limited Distance Modem Example (Point-to-Point)

Only a few circuits are necessary: Signal Ground (7) Transmitted Data (2) Received Data (3) Request to Send (4) Clear to Send (5) DCE Ready (6) Received Line Signal

Detector [Carrier Detect] (8)

Additional circuits necessary sometimes: DTE Ready(20) Ring Indicator (22)

Page 36: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

36

Null Modem Cable

SGDTR

DSR

RTS

CTSCDTDRD

SGDTR

DSR

RTS

CTSCDTDRD

Allows DTE to DTE direct communication

Page 37: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

37

EIA-232-D

newer version of RS-232-C adopted in 1987

improvements in grounding shield, test and loop-back signals

the popularity of RS-232-C in use made it difficult for EIA-232-D to enter into the marketplace

Page 38: 1 Chapter 6 The Data Communications Interface. 2 Data Flow: Simplex zTransmits in only one direction zrarely used in data communications ze.g., receiving

38

RS-449

an EIA standard that improves on the capabilities of RS-232-C

provides for a 37-pin connection, cable lengths up to 200 feet, and data transmission rates up to 2 million bps

equates with the functional and procedural portions of R-232-C the electrical and mechanical specifications are

covered by RS-422 and RS-423