Slides for Chapter 4

1,333 views
1,273 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,333
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Slides for Chapter 4

  1. 1. Chapter Four Making Connections Data Communications and Computer Networks: A Business User’s Approach, Fourth Edition
  2. 2. After reading this chapter, you should be able to: <ul><li>List the four components of all interface standards </li></ul><ul><li>Discuss the basic operations of the USB and EIA-232F interface standards </li></ul><ul><li>Cite the advantages of FireWire, SCSI, iSCSI, InfiniBand, and Fibre Channel interface standards </li></ul><ul><li>Outline the characteristics of asynchronous, synchronous, and isochronous data link interfaces </li></ul>
  3. 3. After reading this chapter, you should be able to (continued): <ul><li>Recognize the difference between half-duplex and full-duplex connections </li></ul><ul><li>Identify the operating characteristics of terminal-to-mainframe connections and why they are unique compared to other types of computer connections </li></ul>
  4. 4. Introduction <ul><li>Connecting peripheral devices to a computer has, in the past, been a fairly challenging task </li></ul><ul><li>Newer interfaces have made this task much easier </li></ul><ul><li>Let’s examine the interface between a computer and a device </li></ul><ul><ul><li>This interface occurs primarily at the physical layer </li></ul></ul>
  5. 5. Interfacing a Computer to Peripheral Devices <ul><li>The connection to a peripheral is often called the interface </li></ul><ul><li>The process of providing all the proper interconnections between a computer and a peripheral is called interfacing </li></ul>
  6. 6. Characteristics of Interface Standards <ul><li>There are essentially two types of standards </li></ul><ul><ul><li>Official standards </li></ul></ul><ul><ul><ul><li>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) </li></ul></ul></ul><ul><ul><li>De facto standards </li></ul></ul><ul><ul><ul><li>Created by other groups that are not official standards but because of their widespread use, become “almost” standards </li></ul></ul></ul>
  7. 7. Characteristics of Interface Standards (continued) <ul><li>There are four possible components to an interface standard: </li></ul><ul><ul><li>Electrical component </li></ul></ul><ul><ul><li>Mechanical component </li></ul></ul><ul><ul><li>Functional component </li></ul></ul><ul><ul><li>Procedural component </li></ul></ul>
  8. 8. Characteristics of Interface Standards (continued) <ul><li>Four components </li></ul><ul><ul><li>Electrical component – deals with voltages, line capacitance, and other electrical characteristics </li></ul></ul><ul><ul><li>Mechanical component – deals with items such as the connector or plug description </li></ul></ul><ul><ul><li>Functional component – describes the function of each pin or circuit that is used in a particular interface </li></ul></ul><ul><ul><li>Procedural component – describes how the particular circuits are used to perform an operation </li></ul></ul>
  9. 9. Important Interface Standards <ul><ul><li>EIA-232F – an older standard originally designed to connect a modem to a computer </li></ul></ul><ul><ul><li>USB-2 (Universal Serial Bus-2) – a newer standard that is more powerful than EIA-232F </li></ul></ul><ul><ul><li>I-1394 (Firewire) – another newer standard that is much more powerful than EIA 232F but has different focus in functionality than USB </li></ul></ul><ul><ul><li>(Ulra)-IDE, (Ultra)SCSI, FC-AL – internal PC buses </li></ul></ul>
  10. 10. EIA-232F <ul><li>Originally named RS-232 but has gone through many revisions </li></ul><ul><li>The electrical component is defined by another standard: V.28 </li></ul><ul><li>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. </li></ul>
  11. 11. EIA-232F (continued)
  12. 12. EIA-232F (continued) <ul><li>The functional and procedural components are defined by the V.24 standard </li></ul><ul><li>For example, V.24 defines the function of each of the pins on the DB-9 connector, as shown on the next slide </li></ul>
  13. 13. EIA-232F (continued)
  14. 14. EIA-232F (continued) <ul><li>The next slide shows an example of the procedural dialog that can be used to create a connection between two endpoints </li></ul><ul><ul><li>Note the level of complexity needed to establish a full-duplex connection </li></ul></ul>
  15. 15. EIA-232F (continued)
  16. 16. EIA-232F (continued) <ul><li>A half-duplex connection transmits data in both directions but in only one direction at a time </li></ul><ul><li>A full-duplex connection transmits data in both directions and at the same time </li></ul><ul><li>A simplex connection can transmit data in only one direction </li></ul>
  17. 17. Universal Serial Bus (USB)
  18. 18. Universal Serial Bus (USB) (continued) <ul><li>The USB interface is a modern standard for interconnecting a wide range of peripheral devices to computers </li></ul><ul><li>Supports plug and play </li></ul><ul><li>Can daisy-chain multiple devices </li></ul><ul><li>USB 2.0 can support 480 Mbps (USB 1.0 is only 12 Mbps) </li></ul>
  19. 19. Universal Serial Bus (USB) (continued) <ul><li>The USB interface defines all four components </li></ul><ul><li>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 </li></ul><ul><li>The mechanical component precisely defines the size of four different connectors and uses only four wires (the metal shell counts as one more connector) </li></ul>
  20. 20. Universal Serial Bus (USB) (continued) <ul><li>The USB standard uses the NRZI combined with 4B/5B bit stuffing scheme </li></ul><ul><li>USB networks use a tiered-star topology – Hubs up to 16 devices but can be chained so no limit on the number of devices. </li></ul><ul><li>The functional and procedural components are fairly complex but are based on the polled bus </li></ul><ul><li>The computer takes turns asking each peripheral if it has anything to send </li></ul>
  21. 21. Universal Serial Bus (USB): functions, endpoints, pipes <ul><li>USB device can be used as a host, peripheral device, hub, or host controller. Each use has associated functions . These can be seen as USB devices which provide a capability (or function) such as a Printer, FAX, scanner, etc. </li></ul><ul><li>Endpoints are sources/sinks of data. As the bus is host centric, endpoints occur at the end of the communications channel at the USB function. </li></ul><ul><li>Client software transfers data through pipes . A pipe is a logical connection between the host and an endpoint or (endpoints). </li></ul>
  22. 22. Universal Serial Bus (USB): addressing
  23. 23. Universal Serial Bus (USB): transactions <ul><li>Each USB transaction consists of </li></ul><ul><li>Token Packet : header that defines what it expects to follow, </li></ul><ul><li>(Optional) Data Packet : contains the data (payload) </li></ul><ul><li>Status Packet : used to acknowledge transactions and to provide a means of error correction </li></ul>
  24. 24. Universal Serial Bus (USB): a scenario for control function <ul><li>Setup Stage is where the request is sent. </li></ul><ul><li>The setup token that contains the address and endpoint number is sent first. </li></ul><ul><li>The data packet is sent next. It contains a setup packet which details the type of request. </li></ul><ul><li>The last packet is a handshake used for acknowledging successful receipt or to indicate an error. If the function successfully receives the setup data (CRC, PID, etc. are OK) it responds with ACK, otherwise it ignores the data and doesn’t send a handshake packet. </li></ul>
  25. 25. Universal Serial Bus (USB): a scenario for control function (continued) <ul><li>Data Stage: is where IN or OUT data transfers happen (one or multiple – determined by amount of data requested by SETUP packet). </li></ul><ul><li>IN: The host is ready to receive control data, it issues an IN Token. Reply can be a DATA packet containing the control data, a STALL packet indicating an error at the endpoint or a NAK packet indicating that the endpoint is OK, but temporary has no data to send. </li></ul><ul><li>OUT: The host needs to send a control data packet, it issues an OUT token followed by a data packet containing the control data. If the function's endpoint buffer got the data OK the endpoint issues an ACK, if endpoint is busy then NAK, if error then STALL. </li></ul>
  26. 26. Universal Serial Bus (USB): a scenario for control function (continued) <ul><li>Status Stage reports the status of the overall request. Status reporting is always performed by the function. </li></ul><ul><li>IN: If the host sent IN token during the data stage, the host acknowledges the successful receipt of this data by sending an OUT token followed by a zero length data packet. An ACK indicates the function has completed the command. If an error occurred during the processing of this command, the function issues a STALL. If the function is still processing the command, it returns a NAK indicating to the host to repeat the status stage later. </li></ul><ul><li>OUT: If the host sent OUT token during the data stage, the function acknowledges the receipt of data by sending a zero length packet in response to an IN token issued by the host. If an error occurred during processing, the function issues a STALL. If it is still busy processing data, it issues a NAK asking the host to retry the status stage later. </li></ul>
  27. 27. Universal Serial Bus (USB) (continued) <ul><li>Supports three types of data transfers: </li></ul><ul><ul><li>Interrupt (asynchronous) transfers: </li></ul></ul><ul><ul><li>• Guaranteed Latency </li></ul></ul><ul><ul><li>• Stream Pipe - Unidirectional </li></ul></ul><ul><ul><li>• Error detection and next period retry. </li></ul></ul><ul><ul><li>Isochronous transfers </li></ul></ul><ul><ul><li>• Guaranteed access to USB bandwidth. </li></ul></ul><ul><ul><li>• Bounded latency. </li></ul></ul><ul><ul><li>• Stream Pipe - Unidirectional </li></ul></ul><ul><ul><li>• Error detection via CRC, but no retry or guarantee of delivery. </li></ul></ul><ul><ul><li>• Full & high speed modes only. </li></ul></ul>
  28. 28. Universal Serial Bus (USB) (continued) <ul><ul><li>Bulk transfers </li></ul></ul><ul><ul><li>• Used to transfer large bursty data. </li></ul></ul><ul><ul><li>• Error detection via CRC, with guarantee of delivery. </li></ul></ul><ul><ul><li>• No guarantee of bandwidth or minimum latency. </li></ul></ul><ul><ul><li>• Stream Pipe - Unidirectional </li></ul></ul><ul><ul><li>• Full & high speed modes only . </li></ul></ul>
  29. 29. FireWire <ul><li>Low-cost digital interface (non-polled, peer-to-peer device network) – 63 peripherials. </li></ul><ul><li>Capable of supporting transfer speeds of up to 400 Mbps </li></ul><ul><li>Hot pluggable, daisy-chainable. </li></ul><ul><li>Supports two types of data connections: </li></ul><ul><ul><li>Asynchronous connection </li></ul></ul><ul><ul><li>Isochronous connection </li></ul></ul><ul><li>Uses Serial Bus Protocol – 2 </li></ul><ul><li>(for more see FireWire Concepts ) </li></ul>
  30. 30. FireWire functions <ul><li>Identification: When a device is plugged in, it immediately broadcasts its unique identification number to other devices on the network and becomes part of that network. </li></ul><ul><li>Asynchronous mode transfer: The address of both the sender and the receiver is transmitted followed by the actual packet data. Once the receiver accepts the packet, a packet acknowledgment is returned to the original sender. To improve throughput, the sender may continue transmission until 64 transactions are outstanding. </li></ul>
  31. 31. FireWire functions (continued) <ul><li>Isochronous mode transfer: T he sender requests an isochronous channel by introducing a request token into a time slot that must not be disrupted by peers. Channel IDs are transmitted followed by the packet data. The receiver monitors the incoming data's channel ID and accepts only data with the specified ID, 64 isochronous channels may be defined. </li></ul>
  32. 32. SCSI and iSCSI <ul><li>SCSI (Small Computer System Interface)- a protocol of 64 commands. Initially, parallel bus (8 bits)- uses Low Voltage Differential signaling: </li></ul><ul><ul><li>A technique for interfacing a computer to high-speed devices such as hard disk drives, tape drives, CDs, and DVDs </li></ul></ul><ul><ul><li>Designed to support devices of a more permanent nature: SCSI is a systems interface (for more information see what is SCSI? ) </li></ul></ul><ul><li>iSCSI (Internet SCSI) </li></ul><ul><ul><li>A technique for interfacing disk storage to a computer via the Internet </li></ul></ul>
  33. 33. InfiniBand and Fibre Channel <ul><li>InfiniBand – a serial connection or switched bus connection that can carry multiple channels of data at the same time </li></ul><ul><ul><li>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 </li></ul></ul><ul><ul><li>A network of high-speed links and switches (for more see High Performance Computing- SW fabric and What is InfiniBand ? ) </li></ul></ul><ul><li>Fibre Channel- Arbitrated Loop (FC-AL ) – also a serial, high-speed network that connects a computer to multiple input/output devices. Designed for RAID at a speed 400 MBYTES/s. </li></ul><ul><ul><li>Supports data transfer rates up to billions of bits per second, but can support the interconnection of up to 126 devices only (for more see Arbitrated loop and What is FC-AL? ) </li></ul></ul>
  34. 34. Interface speeds <ul><li>standard parallel port: 115kBYTES/s (.115MBYTES/s) </li></ul><ul><li>Original USB: 12Mbits/s (1.5MBYTES/s) </li></ul><ul><li>ECP/EPP parallel port: 3MBYTES/s </li></ul><ul><li>IDE: 3.3-16.7MBYTES/s </li></ul><ul><li>SCSI-1: 5MBYTES/s </li></ul><ul><li>SCSI-2 (Fast SCSI, Fast Narrow SCSI): 10MBYTES/s </li></ul><ul><li>Fast Wide SCSI (Wide SCSI): 20MBYTES/s </li></ul><ul><li>Ultra SCSI (SCSI-3, Fast-20, Ultra Narrow): 20MBYTES/s </li></ul><ul><li>UltraIDE: 33MBYTES/s </li></ul>
  35. 35. Interface speeds (continued) <ul><li>Wide Ultra SCSI (Fast Wide 20): 40MBYTES/s </li></ul><ul><li>Ultra2 SCSI: 40MBYTES/s </li></ul><ul><li>IEEE-1394: 100-400Mbits/s (12.5--50MBYTES/s) </li></ul><ul><li>Hi-Speed USB: 480Mbits/s (60MBYTES/s) </li></ul><ul><li>Wide Ultra2 SCSI: 80MBYTES/s </li></ul><ul><li>Ultra3 SCSI: 80MBYTES/s </li></ul><ul><li>Wide Ultra3 SCSI: 160MBYTES/s </li></ul><ul><li>FC-AL Fiber Channel: 100-400MBYTES/s </li></ul><ul><li>Infini-BAND: 2.5 Gbits/s (312MBYTES/s) </li></ul>
  36. 36. Asynchronous Connections <ul><li>A type of connection defined at the data link layer </li></ul><ul><li>To transmit data from sender to receiver, an asynchronous connection creates a one-character package called a frame </li></ul><ul><li>Added to the front of the frame is a start bit, while a stop bit is added to the end of the frame </li></ul><ul><li>An optional parity bit can be added which can be used to detect errors </li></ul>
  37. 37. Asynchronous Connections (continued)
  38. 38. Asynchronous Connections (continued)
  39. 39. Asynchronous Connections (continued) <ul><li>The term asynchronous is misleading here because you must always maintain synchronization between the incoming data stream and the receiver </li></ul><ul><li>Asynchronous connections maintain synchronization by using small frames with a leading start bit </li></ul>
  40. 40. Synchronous Connections <ul><li>A second type of connection defined at the data link layer </li></ul><ul><li>A synchronous connection creates a large frame that consists of header and trailer flags, control information, optional address information, error detection code, and data </li></ul><ul><li>A synchronous connection is more elaborate but transfers data in a more efficient manner </li></ul>
  41. 41. Synchronous Connections (continued)
  42. 42. Isochronous Connections <ul><li>A third type of connection defined at the data link layer used to support real-time applications </li></ul><ul><li>Data must be delivered at just the right speed (real-time) – not too fast and not too slow </li></ul><ul><li>Typically an isochronous connection must allocate resources on both ends to maintain real-time </li></ul><ul><li>USB and Firewire can both support isochronous </li></ul>
  43. 43. Terminal-to-Mainframe Computer Connections <ul><li>Point-to-point connection – a direct, unshared connection between a terminal and a mainframe computer </li></ul><ul><li>Multipoint connection – a shared connection between multiple terminals and a mainframe computer </li></ul><ul><li>The mainframe is the primary and the terminals are the secondaries </li></ul>
  44. 44. Terminal-to-Mainframe Computer Connections (continued)
  45. 45. Terminal-to-Mainframe Computer Connections (continued) <ul><li>To allow a terminal to transmit data to a mainframe, the mainframe must poll the terminal </li></ul><ul><li>Two basic forms of polling: roll-call polling and hub polling </li></ul><ul><ul><li>In roll-call polling, the mainframe polls each terminal in a round-robin fashion </li></ul></ul><ul><ul><li>In hub polling, the mainframe polls the first terminal, and this terminal passes the poll onto the next terminal </li></ul></ul>
  46. 46. Terminal-to-Mainframe Computer Connections (continued)
  47. 47. Making Computer Connections In Action <ul><li>The back panel of a personal computer has many different types of connectors, or connections: </li></ul><ul><ul><li>RS-232 connectors </li></ul></ul><ul><ul><li>USB connectors </li></ul></ul><ul><ul><li>Parallel printer connectors </li></ul></ul><ul><ul><li>Serial port connectors </li></ul></ul>
  48. 48. Making Computer Connections In Action (continued)
  49. 49. Making Computer Connections In Action (continued) <ul><li>1 and 2 – DIN connectors for keyboard and mouse </li></ul><ul><li>3 – USB connectors </li></ul><ul><li>4 and 6 – DB-9 connectors </li></ul><ul><li>5 – Parallel port connector (Centronics) </li></ul><ul><li>7, 8, and 9 – audio connectors </li></ul><ul><li>Will Bluetooth replace these someday? </li></ul>
  50. 50. Making Computer Connections In Action (continued) <ul><li>A company wants to transfer files that are typically 700K chars in size </li></ul><ul><li>If an asynchronous connection is used, each character will have a start bit, a stop bit, and maybe a parity bit </li></ul><ul><li>700,000 chars * 11 bits/char (8 bits data + start + stop + parity) = 7,700,000 bits </li></ul>
  51. 51. Making Computer Connections In Action (continued) <ul><li>If a synchronous connection is used, assume maximum payload size – 1500 bytes </li></ul><ul><li>To transfer a 700K char file requires 467 1500-character (byte) frames </li></ul><ul><li>Each frame will also contain 1-byte header, 1-byte address, 1-byte control, and 2-byte checksum, thus 5 bytes overhead </li></ul>
  52. 52. Making Computer Connections In Action (continued) <ul><li>1500 bytes payload + 5 byte overhead = 1505 byte frames </li></ul><ul><li>467 frames * 1505 bytes/frame = 716,380 bytes, or 5,731,040 bits </li></ul><ul><li>Significantly less data using synchronous connection </li></ul>
  53. 53. Summary <ul><li>Connection between a computer and a peripheral is often called the interface </li></ul><ul><li>Process of providing all the proper interconnections between a computer and a peripheral is called interfacing </li></ul><ul><li>The interface between computer and peripheral is composed of one to four components: electrical, mechanical, functional, and procedural </li></ul><ul><li>A DTE is a data terminating device </li></ul><ul><ul><li>Computer </li></ul></ul><ul><li>A DCE is a data circuit-terminating device </li></ul><ul><ul><li>Modem </li></ul></ul>
  54. 54. Summary (continued) <ul><li>Two interface standards worthy of additional study: Universal Serial Bus, and EIA-232F </li></ul><ul><ul><li>EIA-232F was one of the first highly popular standards </li></ul></ul><ul><ul><li>Universal Serial Bus is currently the most popular interface standard </li></ul></ul><ul><li>Half-duplex systems can transmit data in both directions, but in only one direction at a time </li></ul><ul><li>Full-duplex systems can transmit data in both directions at the same time </li></ul><ul><li>Other peripheral interfacing standards that provide power, flexibility, and ease-of-installation include FireWire, SCSI, iSCSI, InfiniBand, and Fibre Channel </li></ul>
  55. 55. Summary (continued) <ul><li>While much of an interface standard resides at the physical layer, a data link connection is also required when data is transmitted between two points on a network </li></ul><ul><ul><li>Three common data link connections include asynchronous connections, synchronous connections, and isochronous connections </li></ul></ul><ul><li>Asynchronous connections use single-character frames and start and stop bits to establish the beginning and ending points of the frame </li></ul><ul><li>Synchronous connections use multiple-character frames, sometimes consisting of thousands of characters </li></ul><ul><li>Isochronous connections provide real-time connections between computers and peripherals and require a fairly involved dialog to support the connection </li></ul>
  56. 56. Summary (continued) <ul><li>A point-to-point connection is one between a computer terminal and a mainframe computer that is dedicated to one terminal </li></ul><ul><li>A multipoint connection is a shared connection between more than one computer terminal and a mainframe computer </li></ul>

×