1 / 43

Chapter Four

Chapter Four. Making Connections. Chapter Four. Making Connections. Objective. สามารถระบุองค์ประกอบทั้ง 4 ของมาตรฐานการเชื่อมต่อ สามารถอธิบายโอเปอร์เรชั่นพื้นฐานของ EIA-232F และมาตรฐานการเชื่อมต่อแบบ USB สามารถวิเคราะห์ความแตกต่างระหว่างการเชื่อมแต่แบบฮาร์พดูเพล็ก และฟูลดูเพล็ก

Download Presentation

Chapter Four

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter Four Making Connections

  2. Chapter Four Making Connections Objective • สามารถระบุองค์ประกอบทั้ง 4 ของมาตรฐานการเชื่อมต่อ • สามารถอธิบายโอเปอร์เรชั่นพื้นฐานของ EIA-232F และมาตรฐานการเชื่อมต่อแบบ USB • สามารถวิเคราะห์ความแตกต่างระหว่างการเชื่อมแต่แบบฮาร์พดูเพล็ก และฟูลดูเพล็ก • สามารถบอกข้อดีของมาตรฐานการเชื่อมต่อของ FireWire, SCSI, InfiniBand และ Fibre Channel • สามารถอธิบายคุณลักษณะรูปแบบการเชื่อมต่อข้อมูลของอะซิงโครนัส, ซิงโครนัส และ โอโซโครนัส • สามารถระบุลักษณะการทำงานของการเชื่อมต่อเทอร์มินัลกับเมนเฟรม และสามารถวิเคราะห์ได้ว่าเหตุใดจึงมีความแตกต่าง กับการเชื่อมต่อคอมพิวเตอร์ประเภทอื่นๆ

  3. Introduction Chapter Four - Making Connections • Connecting peripheral devices to a computer has, in the past, been a fairly challenging task • Newer interfaces have made this task much easier • Let’s examine the interface between a computer and a device. This interface occurs primarily at the physical layer

  4. Interface Standards Chapter Four - Making Connections • 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 (Electronics Industries Association), ISO (International Organization for Standards), and ANSI (American National Standards Institute) • De-facto standards – protocols created by other groups that are not official standards but because of their widespread use, become “almost” standards

  5. Interface Standards Chapter Four - Making Connections • There are four possible components to an interface standard: • Electrical component • Mechanical component • Functional component • Procedural component

  6. The Four Components Chapter Four - Making Connections • The electrical component deals with voltages, line capacitance, and other electrical characteristics • The mechanical component deals with items such as the connector or plug description.

  7. The Four Components Chapter Four - Making Connections • The 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

  8. Two Example Interfaces Chapter Four - Making Connections • In order to better understand the four components of an interface, let’s examine two popular interface standards • EIA-232F – an older standard originally designed to connect a modem to a computer • USB (Universal Serial Bus) – a newer standard that is much more powerful than EIA-232F

  9. RS-232 and EIA-232F Chapter Four - Making Connections • 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.

  10. Chapter Four - Making Connections

  11. RS-232 and EIA-232F Chapter Four - Making Connections • 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 next slide

  12. RS-232 and EIA-232F Chapter Four - Making Connections

  13. RS-232 and EIA-232F Chapter Four - Making Connections • The next slide 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

  14. Chapter Four - Making Connections

  15. Universal Serial Bus (USB) Chapter Four - Making Connections • The USB interface is a modern standard for interconnecting a wide range of peripheral devices to computers • Supports plug and play • Can daisychain multiple devices • USB 2.0 can support 480 Mbps (USB 1.0 is only 12 Mbps)

  16. Universal Serial Bus (USB) Chapter Four - Making Connections • 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)

  17. Universal Serial Bus (USB) Chapter Four - Making Connections

  18. Universal Serial Bus (USB) Chapter Four - Making Connections • 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

  19. Asynchronous Connections Chapter Four - Making Connections • A 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 which can be used to detect errors

  20. Asynchronous Connections Chapter Four - Making Connections

  21. Asynchronous Connections Chapter Four - Making Connections

  22. Asynchronous Connections Chapter Four - Making Connections • The term asynchronous is misleading here because you must always maintain synchronization between the incoming data stream and the receiver • Asynchronous connections maintain synchronization by using small frames with a leading start bit

  23. Asynchronous Transmission

  24. Synchronous Connections Chapter Four - Making Connections • A second type of connection defined at the data link layer • A synchronous connection creates a large frame that consists of header and trailer flags, control information, optional address information, error detection code, and data • A synchronous connection is more elaborate but transfers data in a more efficient manner

  25. Synchronous Connections Chapter Four - Making Connections

  26. Synchronous Transmission

  27. Isochronous Connections Chapter Four - Making Connections • A third type of connection defined at the data link layer used to support real-time applications • The 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

  28. Half Duplex, Full Duplex, and Simplex Connections Chapter Four - Making Connections • A 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

  29. Half Duplex, Full Duplex, and Simplex Connections • Simplex

  30. Half Duplex, Full Duplex, and Simplex Connections • Half-Duplex

  31. Half Duplex, Full Duplex, and Simplex Connections • Full-Duplex

  32. Terminal-to-Mainframe Connections Chapter Four - Making Connections • A 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 the primary and the terminals are the secondaries

  33. Terminal-to-Mainframe Connections Chapter Four - Making Connections

  34. Terminal-to-Mainframe Connections Chapter Four - Making Connections • 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 • 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

  35. Terminal-to-Mainframe Connections Chapter Four - Making Connections Roll call polling

  36. Making Computer Connections In Action Chapter Four - Making Connections • 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

  37. Making Computer Connections In Action Chapter Four - Making Connections

  38. Making Computer Connections In Action Chapter Four - Making Connections • 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 or ??? replace these someday?

  39. Making Computer Connections In Action Chapter Four - Making Connections • 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

  40. Making Computer Connections In Action Chapter Four - Making Connections • 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

  41. Making Computer Connections In Action Chapter Four - Making Connections • 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

  42. Workshop • จงอธิบายความแตกต่างในการเชื่อมต่อแบบ Asynchronous, Synchronous และ Isochronous • การเชื่อมต่อแบบ Asynchronous มีบิตใดที่เพิ่มเติมขึ้นนอกเหนือจากตัวอักษรปกติที่ใช้ในการส่งข้อมูล • จงบอกความแตกต่างระหว่างการสื่อสารแบบ half-duplex และ full-duplex • จงบอกความแตกต่างระหว่างการเชื่อมต่อแบบ point-to-point และ multipoint

  43. Workshop • วิธีที่เมนเฟรมคอมพิวเตอร์ ติดต่อสอบถามเครื่องเทอร์มินัล เพื่อส่งข้อมูล เรียกว่าอะไร • DTE และ DCE คืออะไร • หากต้องการส่งข้อความตัวอักษร 1000 ตัวอักษร แบบ 7 บิต ต้องใช้บิตในการส่งแบบ Asynchronous ทั้งหมดจำนวนกี่บิต และสมมติว่า การส่งทั้ง 1000 ตัวอักษรนั้น ใช้เฟรมในการส่งแบบ Synchronous เพียง 1 เฟรมเท่านั้น จะต้องใช้บิตในการส่งแบบ Synchronous ทั้งหมดจำนวนกี่บิตแสดงวิธีการคำนวณโดยละเอียด

More Related