Top Banner
1 Lecture 04 Making Connection
57

Lecture 04

Jan 22, 2016

Download

Documents

Albin

Lecture 04. Making Connection. Introduction. Connection concept Interface concept and standard (Level 1) EIA-232F USB Data Link Connections (Level 2) Terminal-to-mainframe computer connections Application examples. (to p3). (to p35). (to p48). (to p52). Connection concept. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 04

1

Lecture 04

Making Connection

Page 2: Lecture 04

2

Introduction• Connection concept

– Interface concept and standard (Level 1)• EIA-232F• USB

• Data Link Connections (Level 2)

• Terminal-to-mainframe computer connections

• Application examples

(to p3)

(to p48)

(to p35)

(to p52)

Page 3: Lecture 04

3

Connection concept

• How computer networks are connected?

(to p4)

Page 4: Lecture 04

4

Connection concept

• Recalled: OSI model – level 1– Physical level, which requires peripheral

devices to connect two different computers or devices together

– Termed as “interface”

• Two types of standards• Modes of data flow• Connection to systems

(to p7)

(to p8)

(to p14)

(to p9)

(to p5)

Page 5: Lecture 04

5

Connection (cont.)

• Characteristics of interface standards

• Two important interface standards– EIA-232F– USB (Universal Serial Bus)

• Other interfacing standards

(to p20)

(to p27)

(to p6)

(to p18)

Page 6: Lecture 04

6

Other interfacing standards

• Other peripheral interfacing standards that provide power, flexibility and ease-of-installation include: – FireWire (low cost device for digital)– SCSI, iSCSC(mainly for permanent storage,

CD/DVD) – InfiniBand, Fibre Channel (high speed connection)

(to p32)

(to p33)

(to p34)

(to p2)

Page 7: Lecture 04

7

Data terminating equipment Data communicating equipment

Level 1

Level 2

(to p4)

Page 8: Lecture 04

8

Characteristics of Interface Standards

• There are essentially two types of standards– Official standards

• Created by standards-making organizations such as ITU (International Telecommunications Union), IEEE (Institute for Electrical and Electronics Engineers), EIA (Electronic Industries Association), ISO (International Organization for Standardization), and ANSI (American National Standards Institute)

• CSA (Canadian standard), UL (USA for computer hardware)

– De facto standards • Created by other groups that are not official standards but because of

their widespread use, become “almost” standards

(to p4)

Page 9: Lecture 04

9

data flow

There are 3 types of data flow:

i) simplex transmission

ii) half-duplex transmission

iii) full duplex transmission

(to p10)

(to p12)

(to p13)

(to p4)

Page 10: Lecture 04

10

simplex transmission

• i) simplex transmission– data is transmitted in one direction only– ie no data transmission on opposite direction

is allowed• see Figure 8-2

– Application examples?

(to p11)

(to p9)

Page 11: Lecture 04

11

(to p13)

(to p12)

(to p10)

Page 12: Lecture 04

12

half-duplex transmission

• ii) half-duplex transmission– transmission in either direction on a circuit but

only one direction at a time – eg an inquiry is sent to the computer and then

a response is sent back on the same circuit to the terminal

– Application examples?

(to p11)

(to p9)

Page 13: Lecture 04

13

full duplex transmission

• iii) full duplex transmission– data transmission in both directions

simultaneously on the circuit– machine needs to be intelligence at both ends

(why?)

– Application examples?

(to p11)

(to p9)

Page 14: Lecture 04

14

connection to the system

• two types of physical connection in the system

– i) Parallel data transmission– ii) Series data transmission

(to p15)

(to p17)

(to p4)

Page 15: Lecture 04

15

Parallel data transmission

• i) Parallel data transmission– connected via direct cable that has one wire

for each bit in a character of data code being used by the terminal

» See Figure 8.3

– with multiple wires, all the bits of a characters can be transmitted between the terminals and computer at once

– Disadv: very expensive & no practice over long distance (why?)

(to p16)

(to p14)

Page 16: Lecture 04

16

FIGURE 8-3 Parallel and serial transmission.

(to p17)

(to p15)

Page 17: Lecture 04

17

• ii) Series data transmission– bits of each character are sent down to a line

one after another– complicated process because machine needs

to know how to decompose and to reconstruct of bits at each respective end

– Adv or Disadv?

(to p14)

(to p16)

Page 18: Lecture 04

18

Characteristics of Interface Standards (continued)

• There are four possible components to an interface standard:– Electrical component– Mechanical component– Functional component– Procedural component

Explanations

(to p19)

(to p5)

Page 19: Lecture 04

19

Characteristics of Interface Standards (continued)

• Four components – Electrical component – deals with voltages, line capacitance,

and other electrical characteristics

– Mechanical component – deals with items such as the connector or plug description

– Functional component – describes the function of each pin or circuit that is used in a particular interface

– Procedural component – describes how the particular circuits are used to perform an operation

(to p18)

Page 20: Lecture 04

20

EIA-232F

• EIA-232F – an older standard originally designed to connect a modem to a computer

• Originally named RS-232 but has gone through many revisions

• The electrical component is defined by another standard: V.28• The mechanical component is often defined by ISO 2110, the

DB-25 connector. The DB-9 connector is now more common than the DB-25.

(to p23)

(to p24)

(to p21)

Page 21: Lecture 04

21

Worked as full duplex (why?)Its functions

(to p20)

(to p22)

Page 22: Lecture 04

22

(to p21)

Page 23: Lecture 04

23

EIA-232F (continued)

(to p20)

Page 24: Lecture 04

24

EIA-232F (continued)• The functional and procedural components are

defined by the V.24 standard• For example, V.24 defines the function of each

of the pins on the DB-9 connector, as shown on the Table 4.1

• Table 4.2 shows an example of the procedural dialog that can be used to create a connection between two endpoints– Note the level of complexity needed to establish a full-

duplex connection

• (to p5)

(to p25)(to p26)

Page 25: Lecture 04

25

EIA-232F (continued)

(to p24)

Page 26: Lecture 04

26

EIA-232F (continued)

(to p24)

Page 27: Lecture 04

27

Universal Serial Bus (USB)

• a newer standard that is much more powerful than EIA-232F

• The USB interface is a modern standard for interconnecting a wide range of peripheral devices to computers

• Supports plug and play

• Can daisy-chain multiple devices

• USB 2.0 can support 480 Mbps (USB 1.0 is only 12 Mbps); USB 3.0

(to p28)

Page 28: Lecture 04

28

Universal Serial Bus (USB) (continued)

• The USB interface defines all four components– The electrical component defines two wires VBUS

and Ground to carry a 5-volt signal, while the D+ and D- wires carry the data and signaling information

– The mechanical component precisely defines the size of four different connectors and uses only four wires (the metal shell counts as one more connector)

(to p29)

Page 29: Lecture 04

29

Universal Serial Bus (USB) (continued)

• Four types of USB connectors

• The functional and procedural components are fairly complex but are based on the polled bus

• The computer takes turns asking each peripheral if it has anything to send

• More on polling near the end of this chapter

(to p5)

(to p30)

(to p31)

Page 30: Lecture 04

30

Universal Serial Bus (USB) (continued)

(to p29)

Page 31: Lecture 04

31

Universal Serial Bus (USB) (continued)

• The functional and procedural components are fairly complex but are based on the polled bus

• The computer takes turns asking each peripheral if it has anything to send

• More on polling near the end of this chapter

(to p29)

Page 32: Lecture 04

32

FireWire• Low-cost digital interface (real time connection for PC)

• A FireWire connection lets you send data to and from high-bandwidth digital devices such as digital camcorders, and it's faster than USB

• Capable of supporting transfer speeds of up to 400 Mbps

• Hot pluggable• Supports two types of data connections:

– Asynchronous connection– Isochronous connection

(to p6)

Page 33: Lecture 04

33

SCSI and iSCSI• SCSI (Small Computer System Interface)

– A technique for interfacing a computer to high-speed devices such as hard disk drives, tape drives, CDs, and DVDs

– Designed to support devices of a more permanent nature• SCSI is a systems interface

– Need SCSI adapter

• iSCSI (Internet SCSI) – A technique for interfacing disk storage to a computer via the Internet

(to p6)

Page 34: Lecture 04

34

InfiniBand and Fibre Channel• InfiniBand – a serial connection or bus that can carry

multiple channels of data at the same time– Can support data transfer speeds of 2.5 billion bits (2.5

gigabits) per second and address thousands of devices, using both copper wire and fiber-optic cables

– A network of high-speed links and switches

• Fibre Channel – also a serial, high-speed network that connects a computer to multiple input/output devices– Supports data transfer rates up to billions of bits per second,

but can support the interconnection of up to 126 devices only

(to p6)

Page 35: Lecture 04

35

Data Link Connections

– Take place at level 2– technique used to transmit data on a comm

line– two methods could be used to transmit data:

• i) Asynchronous transmission (Asych) • ii) Synchronous transmission (Synch)• Iii) Isochronous Connections (Isoch)

(to p2)

(to p47)

(to p42)

(to p36)

Page 36: Lecture 04

36

Asynchronous transmission

i) Asynchronous transmission (Asych)

Pattern of data presentation:– data transmission is sent preceded by an

extra bit, called a start bit, and followed by one more extra bit called stop bit (start/stop transmission)

(to p37)

Page 37: Lecture 04

37

Asynchronous transmission

– Eg:

– 1 1 0 0 0 0 0 1 0

represent a A character Stop bit

start bit or representation of or space bit

mark bit a code system

(to p40)

Alternative presentation

(to p38)

Page 38: Lecture 04

38

Asynchronous Connections (continued)

More example

(to p39)

Page 39: Lecture 04

39

Asynchronous Connections (continued)

Send the word “ H E L L O”(to p37)

Page 40: Lecture 04

40

Asynchronous transmission

– Penalty term is used to measure the efficiency of a code system

– known as transmission efficiency

Eg.

Code No. of bits start/stop total bite Eff.

Baudot 5 2 7 5/7=71.5

ASCII 7 2 9 7/9=77

EBCDIC 8 2 10 8/10=80(to p41)

Page 41: Lecture 04

41

Asynchronous transmission

– Asyn has a function of character synchronization, which allows when a start bit is sensed, the receiver knows that the next n bits on the line make up a characters

– Without Char Syn, receiver cannot rocog the first bit of charc, and thus character could not be interpreted.

– Adv. Equipment cost is low– Disadv. Slow speed, less than 300bps

(to p35)

Page 42: Lecture 04

42

Synchronous transmission

• ii) Synchronous transmission (Synch)– design for line speed that cannot handle by

Asyn– its function is that bit Synch is maintained by

clock circuitry in the transmitter and in the receiver

(to p43)

Page 43: Lecture 04

43

Synchronous transmission

– that is timing generated by the transmitter’s clock is sent along with data so that the receiver can keep its clock synchronized with that of the transmitter throughout a long transmission

– data is usually sent in a block oriented, contains special synch charactersynch character with a unique bit pattern

– similar the Asych, synch char performs a function similar to that of start bit

(to p44)

Page 44: Lecture 04

44

Synchronous transmission

– It has 1 to 4 synchronizing “characters” for each “block” of data; whereas Asych has 2 bits for each character

– Semantic view

– efficiency (to p46)

(to p45)

Page 45: Lecture 04

45

Synchronous Connections (continued)

(to p44)

Page 46: Lecture 04

46

Synchronous transmission

– Example: consider a character consists of

0100101

Asynch: 250 char x (7 data + 2 start/stop) = 2250

Synch: (250 + 4 synch char) x 7 bits) = 1778

Thus, Synch is 21% more efficient than Aysnch

– Note: Mostly, host computers adopt Synch transmission. (to p35)

Page 47: Lecture 04

47

Isochronous Connections

• A third type of connection defined at the data link layer used to support real-time applications

• Data must be delivered at just the right speed (real-time) – not too fast and not too slow

• Typically an isochronous connection must allocate resources on both ends to maintain real-time

• USB and Firewire can both support isochronous• (provide data transmission in a regular period of time)

(to p35)

Page 48: Lecture 04

48

Terminal-to-Mainframe Computer Connections

• Two main ways for connections:– Point-to-point connection – a direct, unshared

connection between a terminal and a mainframe computer

– Multipoint connection – a shared connection between multiple terminals and a mainframe computer

• The mainframe is the primary and the terminals are the secondaries (how do you draw them semantically?)

(to p49)

(to p50)

(to p49)

Page 49: Lecture 04

49

Terminal-to-Mainframe Computer Connections

(continued)

(to p48)

(to p48)

Page 50: Lecture 04

50

Terminal-to-Mainframe Computer Connections (continued)

• To allow a terminal to transmit data to a mainframe, the mainframe must poll the terminal

• Two basic forms of polling: roll-call polling and hub polling

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

2. In hub polling, the mainframe polls the first terminal, and this terminal passes the poll onto the next terminal (how it works, semantically?)

(to p2)

(to p51)

Page 51: Lecture 04

51

Terminal-to-Mainframe Computer Connections (continued)

Roll-call pulling

(to p50)

Page 52: Lecture 04

52

Making Computer Connections In Action

• The 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

Layout (to p53)

Page 53: Lecture 04

53

Making Computer Connections In Action (continued)

(to p54)

Page 54: Lecture 04

54

Making Computer Connections In Action (continued)

• 1 and 2 – DIN connectors for keyboard and mouse

• 3 – USB connectors• 4 and 6 – DB-9 connectors• 5 – Parallel port connector (Centronics) • 7, 8, and 9 – audio connectors• Will Bluetooth replace these someday?

Solution!

(to p55)

Page 55: Lecture 04

55

Making Computer Connections In Action (continued)

• A company wants to transfer files that are typically 700K chars in size

• If an asynchronous connection is used, each character will have a start bit, a stop bit, and maybe a parity bit

• 700,000 chars * 11 bits/char (8 bits data + start + stop + parity) = 7,700,000 bits

(to p56)

Page 56: Lecture 04

56

Making Computer Connections In Action (continued)

• If a synchronous connection is used, assume maximum payload size – 1500 bytes

• To transfer a 700K char file requires 467 1500-character (byte) frames

• Each frame will also contain 1-byte header, 1-byte address, 1-byte control, and 2-byte checksum, thus 5 bytes overhead

(to p57)

Page 57: Lecture 04

57

Making Computer Connections In Action (continued)

• 1500 bytes payload + 5 byte overhead = 1505 byte frames

• 467 frames * 1505 bytes/frame = 716,380 bytes, or 5,731,040 bits

• Significantly less data using synchronous connection