Understand the USB interface and how it is used to transmit data

Types and Methods of Data Transmission (IGCSE 2.1)

Learning Objectives

  • Identify the main categories of data transmission (serial/parallel, simplex‑half‑duplex‑full‑duplex, packet‑switching vs circuit‑switching).
  • Explain the purpose, structure and typical applications of the Universal Serial Bus (USB) interface.
  • List the USB connector families, power limits and the devices that normally use each type.
  • Describe how data is transmitted over USB – signalling, packet format, transfer modes and error‑detection methods.
  • Compare the performance of the different USB versions and relate it to real‑world tasks.
  • Recall basic encryption concepts that can be applied to data sent over USB.

1. Overview of Transmission Methods

The Cambridge syllabus expects you to know the following categories. The table summarises the definition, why the method is used and a typical example.

Category Definition & Why it is Used Typical Example
Serial transmission Bits are sent one after another on a single (or differential) pair of conductors.
• Reduces cable bulk and allows higher speeds over long distances.
USB, RS‑232, Ethernet
Parallel transmission Several bits travel simultaneously on separate conductors.
• Useful for short, high‑bandwidth internal links but suffers from timing skew.
Older printer ports, ISA bus
Simplex Data flows in only one direction. Keyboard → PC (no data sent back)
Half‑duplex Data can travel both ways, but not at the same time. Walkie‑talkie, early Ethernet (10BASE‑T)
Full‑duplex Simultaneous two‑way communication. Modern Ethernet, USB 3.x
Packet‑switching Information is divided into packets that are routed independently across a shared medium.
• Allows many devices to share the same link.
USB, Internet (TCP/IP)
Circuit‑switching A dedicated path is established for the whole communication session.
• Guarantees a fixed bandwidth but is inefficient for bursty traffic.
Traditional telephone network

USB is a **serial, full‑duplex, packet‑switched** interface. It uses a single differential pair (D+ / D‑) for data, so many devices can share one bus while the host controls the timing of each transfer.

2. What Is USB?

The Universal Serial Bus (USB) is a standard, hot‑plugable interface that connects peripheral devices to a host computer.

  • Bidirectional serial data on a differential pair.
  • Power delivery – 5 V, up to 500 mA (USB 2.0), 900 mA (USB 3.0) and up to 5 A with USB‑PD on USB‑C.
  • Automatic device detection (enumeration) and configuration.
  • Wide range of devices – keyboards, mice, storage, audio/video, chargers, etc.

3. USB Connector Families

Connector Shape Typical Use Max Data Rate Power Limit
USB‑A Rectangular, flat Host ports on PCs, chargers USB 2.0: 480 Mbps 5 V ≤ 500 mA
USB‑B Square with beveled top Printers, external hard drives USB 2.0: 480 Mbps 5 V ≤ 500 mA
Mini‑USB Trapezoidal, small Older cameras, MP3 players USB 2.0: 480 Mbps 5 V ≤ 500 mA
Micro‑USB Very small, flat Smartphones, tablets (pre‑USB‑C) USB 2.0: 480 Mbps 5 V ≤ 500 mA (standard) – up to 1.8 A with BC 1.2
USB‑C Reversible, oval Modern smartphones, laptops, monitors USB 3.2: up to 20 Gbps 5 V ≤ 5 A (USB‑PD)

4. USB Versions and Data Rates

Version Year Introduced Maximum Theoretical Speed Key Features
USB 1.1 1998 12 Mbps (Full‑Speed) Low‑speed devices, improved error handling.
USB 2.0 2000 480 Mbps (High‑Speed) Higher bandwidth, 500 mA power, full backward compatibility.
USB 3.0 2008 5 Gbps (SuperSpeed) Full‑duplex signalling, 900 mA power, additional SuperSpeed wires.
USB 3.1 2013 10 Gbps (SuperSpeed+) Improved encoding, higher power delivery.
USB 3.2 2017 20 Gbps (SuperSpeed+, 2 × 10 Gbps lanes) Multi‑lane operation, still backward compatible.
USB4 2019 40 Gbps (optional) Based on Thunderbolt 3, supports multiple data & display streams.

5. How USB Transmits Data

5.1 Signalling

  • USB uses **differential signalling** on the D+ and D‑ lines. A voltage difference represents a logical ‘1’ or ‘0’.
  • Differential signalling reduces electromagnetic interference and permits higher speeds.

5.2 Packet Structure

Every transfer is wrapped in a packet. The basic fields are:

FieldDescription
Preamble / Sync8‑bit pattern that synchronises the receiver.
PID (Packet ID)Identifies the packet type (Token, Data, Handshake, Special).
Address / EndpointSpecifies the target device (7‑bit address) and logical endpoint.
Payload (Data)0–1024 bytes of user data (size depends on transfer type).
CRC (Cyclic Redundancy Check)16‑bit error‑checking code (5‑bit for token packets).
+-----------+-----+----------------+----------+------+
| Preamble  | PID | Addr/Endpoint  | Payload  | CRC  |
+-----------+-----+----------------+----------+------+

5.3 Transfer Types (Modes)

  • Control Transfer – Device configuration, command & status. Always starts with a SETUP token.
  • Isochronous Transfer – Guarantees a steady data rate (e.g., audio or video streams). Errors are tolerated; no retransmission.
  • Bulk Transfer – Large, non‑time‑critical data (e.g., file copies). Uses CRC and automatic retransmission.
  • Interrupt Transfer – Small, infrequent packets that need low latency (e.g., keyboards, mice).

5.4 Error‑Detection (IGCSE 2.2)

  • Parity checking – An early method (odd/even) used in some serial standards; not used in modern USB but worth knowing for the syllabus.
  • Checksum / CRC – Every packet ends with a CRC field. The receiver recomputes the CRC; a mismatch signals an error.
  • Automatic Repeat reQuest (ARQ) – For Control, Bulk and Interrupt transfers the host or device resends a packet if the CRC check fails (handshakes NAK/STALL).

5.5 Simple Throughput Estimate (IGCSE 2.3)

For exam‑style calculations you can use a straightforward approximation:

Usable throughput ≈ Raw bit rate × (1 – Overhead)

  • Typical protocol overhead for USB 2.0 is about 15 %.
  • Thus, usable speed ≈ 480 Mbps × 0.85 ≈ 410 Mbps (≈ 51 MB s⁻¹).
  • For USB 3.0, overhead is roughly 10 % → 5 Gbps × 0.90 ≈ 4.5 Gbps (≈ 560 MB s⁻¹).

These figures help you decide which version is needed for a given task (e.g., copying a 2 GB video file: USB 2.0 ≈ 30 s, USB 3.0 ≈ 3 s).

6. USB Communication Process (Simplified)

  1. Connection detection – Host senses a pull‑up resistor on D+ (Full‑Speed) or D‑ (Low‑Speed).
  2. Enumeration
    • Host assigns a unique 7‑bit address.
    • Host reads the device, configuration, interface and endpoint descriptors.
  3. Driver loading – Based on the class descriptor (e.g., HID, Mass Storage) the operating system loads the appropriate driver.
  4. Data transfer – Host and device exchange packets using the appropriate transfer type (Control, Isochronous, Bulk, Interrupt).
  5. Disconnection – Removal of the pull‑up resistor signals a disconnect; the host frees the address.

7. Encryption and USB (IGCSE 2.3)

USB itself does not define encryption, but data sent over USB can be encrypted at higher protocol layers:

  • USB flash drives may contain hardware that encrypts stored data with AES‑256.
  • File‑transfer protocols (e.g., SFTP) can run over a USB‑connected network adapter, providing end‑to‑end encryption.
  • When discussing “encryption” in the syllabus, note that it is a separate security measure that can be applied to any data, including that carried by USB.

8. Advantages of USB for Data Transmission

  • Single, standardised connector reduces cable clutter.
  • Integrated power delivery removes the need for separate adapters.
  • Hot‑plug capability allows devices to be added or removed without restarting the computer.
  • Backwards compatibility protects existing hardware investments.
  • Full‑duplex, packet‑switching provides efficient, high‑speed communication.

9. Common Applications

  • External storage – flash drives, SSD enclosures.
  • Input devices – keyboards, mice, game controllers.
  • Audio/Video peripherals – webcams, microphones, external sound cards.
  • Charging and powering mobile devices.
  • Data‑acquisition tools, debuggers and programming adapters.
Suggested diagram: A block diagram showing a host controller, a USB‑C hub, and three peripherals (keyboard, flash drive, monitor). Arrows illustrate the shared D+/D‑ data pair and the separate 5 V power line.

10. Quick Revision Questions

  1. What are the two main signalling lines in a USB cable and why is differential signalling used?
  2. Match each USB transfer type (Control, Isochronous, Bulk, Interrupt) with a typical device example.
  3. Estimate the usable throughput of a USB 2.0 connection if the protocol overhead is 15 %.
  4. Explain why USB‑C is called a “reversible” connector and list two benefits of this design.
  5. Identify the four fields of a USB packet and state the purpose of the CRC field.
  6. Give one example of an error‑detection method used in USB and briefly describe how it works.
  7. State one way encryption can be applied to data transferred over USB.

Create an account or Login to take a Quiz

42 views
0 improvement suggestions

Log in to suggest improvements to this note.