EE Primers · Communication interfaces · High-speed serial

USB 3.1: a USB-C SSD talking to a host at 10 Gb/s

USB 3.1 adds a full-duplex SuperSpeed link (one TX pair and one RX pair) beside the legacy USB 2.0 D+/D− pair. Gen 1 runs at 5 Gb/s with 8b/10b coding; Gen 2 runs at 10 Gb/s with 128b/132b. Unlike PCIe there is no shared reference clock: each end runs from its own crystal with spread spectrum, across a detachable cable that may be plugged in either way up. This page follows a host SoC driving an external USB-C SSD over a 1 m cable: the connector and its flip, every signal, attach and link training, equalization, the board constraints, and a 4 KB read at the level of individual packets.

Specifications: USB 3.1 / USB 3.2 [1], USB Type-C [2], xHCI [3], USB Mass Storage BOT and UAS [4].

01 · At a glance

The names, and what each one means on the wire

Marketing nameSpec namesSignallingEncodingLanesUsable (approx.)Connector
SuperSpeed USB 5GbpsUSB 3.0 = USB 3.1 Gen 1 = USB 3.2 Gen 15 Gb/s NRZ, UI 200 ps, Nyquist 2.5 GHz8b/10b1 × (TX + RX)≈ 400–450 MB/sType-A, B, micro-B, C
SuperSpeed USB 10GbpsUSB 3.1 Gen 2 = USB 3.2 Gen 210 Gb/s NRZ, UI 100 ps, Nyquist 5 GHz128b/132b1 × (TX + RX)≈ 1.0–1.1 GB/sType-A, C
SuperSpeed USB 20GbpsUSB 3.2 Gen 2x22 × 10 Gb/s128b/132b2 × (TX + RX)≈ 2.0 GB/sType-C only
  • Two buses in one cable. SuperSpeed and USB 2.0 run independently and in parallel. Every USB 3.x device must also work on USB 2.0, so D+/D− are always routed.
  • Layers: Protocol layer (transaction packets, data packets, bursts, flow control by NRDY/ERDY), Link layer (header packet CRCs, sequence numbers, link commands, retries, U0–U3 power states), Physical layer (scrambling, encoding, SSC, LFPS signalling, receiver detection, equalization).
  • Gen 2 also changed the link layer: larger header packets with a 16-bit sequence space and more buffering, so the faster link is not starved by round-trip latency.
00 · Layers

USB 3.1 against the OSI model

The OSI model splits any communication system into seven layers, each solving one problem and handing a unit of data to the layer below. USB 3.1 defines a Physical layer, a Link layer and a Protocol layer for SuperSpeed, plus the device framework and class specifications (here mass storage) above them. The mapping below is the conventional one; USB was not written against OSI, so the edges are approximate. Click a layer to see what it does in this system and where this page covers it. Every section below carries the same layer tags.

One command, wrapped layer by layer

The SCSI READ(10) command from the worked example, on its way to the drive inside the CBW data packet. Each layer adds its own header or trailer around the unit from the layer above; the receiver strips them in reverse. Widths are not to scale.
02 · The example system

Host SoC to an external USB-C SSD

Host SoC CPU + DRAMUAS / BOT driver xHCI controllerTRB rings in DRAM SuperSpeed PHYGen 2: 10 Gb/s, 128b/132bTX 3-tap FIR · RX CTLE/DFEown PLL + SSC, LFPS USB 2.0 PHY Type-C port logicRp on CC1/CC2, orientation,VCONN, optional PD (BMC) VBUS switch5 V, current limit 2:1 SSmuxsel = orient. AC cap ESD TX1TX2RX1RX2 D+/D− (USB 2.0, 480 Mb/s) CC1 / CC2 VBUS 5 V + GND USB-C 1 m Gen 2 cable SS pair →← SS pair CC (one wire) USB-C External USB SSD ESD AC cap USB 3.1 device ctrl SS PHY + link layer USB 2.0 + protocol UAS / BOT + SCSI FTL · LDPC · NAND IF NANDNAND Rd 5.1 kΩ on CC1, CC2 RegulatorsVBUS → 3.3 V, core, NAND
The host routes both SuperSpeed pin pairs of the receptacle (TX1/RX1 and TX2/RX2) to a 2:1 mux steered by the CC orientation, because the plug can go in either way up. Each transmitter has its own AC capacitors on its own board. The cable carries one SuperSpeed TX/RX pair set for Gen 1/Gen 2 (both sets for Gen 2x2), the USB 2.0 pair, VBUS, ground and one CC wire. The cable's far plug can also enter the device's receptacle either way up, so the device needs the same orientation switching (a mux, or a controller PHY that can use either pair set); it is folded into the device controller here. The device presents Rd on both CC pins.
03 · The connector

USB-C pinout, orientation and the CC handshake

The 24-pin receptacle is rotationally symmetric: row A and row B carry the same functions in reverse order, so a plug inserted either way finds VBUS, GND and D+/D− in the same places. SuperSpeed and CC are not symmetric in use: the plug connects only one CC line through the cable, and that tells the host which SuperSpeed pair set the plug's active pairs landed on. Change the orientation and the source's Rp to see what the host measures.

Receptacle as seen looking into the host port. Row B is drawn mirrored under row A, the way the pins sit physically.
04 · Signals

Every critical signal on the port

Signal (receptacle pins)Direction (host view)ElectricalFunctionWhat to get right
SSTXp1/n1 (A2/A3), SSTXp2/n2 (B2/B3)OutDifferential NRZ, 10 Gb/s, ≈ 0.8–1.2 Vpp,diff, AC-coupledSuperSpeed transmit; one pair active per orientation90 Ω diff, caps 75–265 nF on the board, mux loss, ≤ 5 mil intra-pair skew
SSRXp1/n1 (B11/B10), SSRXp2/n2 (A11/A10)InDifferential, CTLE + DFE + CDR in PHYSuperSpeed receiveNo caps on the board: the far transmitter carries them. Keep separated from TX (NEXT)
D+/D− (A6/A7, B6/B7)BidirectionalUSB 2.0: 480 Mb/s HS current-mode, 400 mV; FS/LS 3.3 VMandatory USB 2.0 path; also used before SuperSpeed is up on some hostsShort the A and B rows on the board with minimal stubs; 90 Ω diff
CC1 (A5), CC2 (B5)BidirectionalRp pull-up on host, Rd 5.1 kΩ on device; PD BMC at 300 kb/s if Power Delivery is usedAttach detect, orientation, current advertisement; VCONN on the unused CCESD rated for VBUS-short (adjacent pins); low capacitance if PD is used
VBUS (A4, A9, B4, B9)Out5 V (vSafe5V); 0.9 A for USB 3.x default, 1.5 or 3 A advertised by Rp, more with PDDevice powerCold socket: only switched on after Rd is seen; turn off on detach; current limit
GND (A1, A12, B1, B12)—Return and shieldReturn current for every pairStitch shell and GND pins straight into the reference plane
SBU1/SBU2 (A8/B8)—Sideband useAlternate modes (DisplayPort AUX, etc.)Unused by USB 3.1; leave open or as the alt-mode needs
No reference clockNothing in the table is a clock. Each side has a local reference (±300 ppm) and applies spread spectrum (0 to −5000 ppm at 30–33 kHz) independently, so the two ends can differ by over 5000 ppm instantaneously. The receiver's CDR tracks it, and elastic buffers absorb the difference using SKP ordered sets the transmitter inserts at a fixed rate.
05 · Physical layer

Encoding, scrambling and LFPS

Gen 1 · 5 Gb/s
  • 8b/10b: each byte becomes a 10-bit symbol with DC balance and guaranteed transitions; 20 % overhead.
  • Data scrambled with x16+x5+x4+x3+1 before encoding.
  • Packets framed by K-symbols (SHP, SDP, END, EPF) that cannot occur in data.
  • Fixed transmitter de-emphasis of −3.5 dB.
Gen 2 · 10 Gb/s
  • 128b/132b: a 4-bit block header (distinguishing data and control blocks) plus 128 scrambled bits; 3 % overhead.
  • Same 23-bit scrambler polynomial as PCIe Gen 3.
  • Transmitter 3-tap FIR with fixed normative setting: preshoot 2.2 dB, de-emphasis −3.1 dB. No coefficient negotiation as in PCIe: the receiver adapts its own CTLE/DFE.
LFPS
  • Low Frequency Periodic Signalling: bursts of a 10–50 MHz square wave on the SuperSpeed pairs, sent when the link is not in U0.
  • Used for Polling (link start), U1/U2/U3 exit (wake), and warm reset; Gen 2 uses LFPS pulse-width modulation (LBPM) to exchange capability messages.
  • Detected with a simple squelch detector, so it works before the CDR has locked.
Polling.LFPS: bursts of tBurst 0.6–1.4 µs repeated every tRepeat 6–14 µs; inside a burst the period is 20–100 ns. Between bursts the transmitter is in electrical idle (both lines at common mode).
00 · Signaling and encoding

Key signaling and encoding schemes in USB

A USB-C port carries several signaling systems at once, each with its own encoding: SuperSpeed on the high-speed pairs, low-frequency bursts on the same pairs when the link is idle, USB 2.0 on D+/D−, and DC levels plus Power Delivery messages on CC. Signaling is how a symbol becomes a voltage; encoding is how bits become symbols.

WhereSignaling (electrical)Encoding / codingWhy it was chosen
SuperSpeed Gen 1 (5 Gb/s)NRZ (PAM2), differential, AC-coupled, −3.5 dB de-emphasis8b/10b, 16-bit scrambler, K-symbol framingDC balance, bounded run length, distinct framing symbols; 20 % overhead
SuperSpeed Gen 2 (10 Gb/s, this page)NRZ (PAM2), 3-tap FIR (2.2 dB preshoot, −3.1 dB de-emphasis)128b/132b: 4-bit block header + 128 scrambled bits, 23-bit scrambler3 % overhead; the header bits are protected well enough to survive single-bit errors
Gen 2x2 (20 Gb/s)Two NRZ lanes in each direction (both Type-C pair sets)128b/132b per lane, data stripedDouble the bandwidth over the same passive cable
LFPSBursts of a 10–50 MHz square wave on the SS pairs; electrical idle betweenNone for wake/polling; LBPM (pulse-width modulation: burst length = bit value) for Gen 2 capability messagesDetectable with a squelch circuit before any PLL or CDR is running
USB 2.0 High Speed (D+/D−)480 Mb/s current-mode differential, ≈ 400 mV (17.78 mA into 22.5 Ω effective)NRZI + bit stuffing (a 0 after six 1s), SYNC and EOP patternsNo coding overhead on average; stuffing bounds the run length for the receiver DLL
USB 2.0 Full/Low SpeedSingle-ended 3.3 V levels: J, K and SE0 statesNRZI + bit stuffingSimple, cheap transceivers
CC: attach and currentDC levels from Rp/Rd dividers (see the connector section)NoneOrientation and current advertisement without any data link
CC: USB Power Delivery≈ 1.1 V single-ended, 300 kb/sBMC (biphase mark code) + 4b5b symbols, CRC-32DC-free and self-clocking on one wire that also carries DC detection levels
USB4 (for contrast)Gen 3: NRZ 20 Gb/s per lane; v2 Gen 4: PAM3 at 80 Gb/s128b/132b + RS-FEC; PAM3 packs 11 bits into 7 three-level symbolsMore bits per symbol where the channel cannot take a higher Nyquist frequency
06 · Equalization

What the cable and board do to 10 Gb/s

A Gen 2 channel is host board + receptacle + 1 m cable + receptacle + device board, roughly 20–23 dB at 5 GHz end to end. The transmitter's fixed FIR does part of the work and the receiver's CTLE and DFE the rest. The simulation runs PRBS7 through the transmitter setting and a lossy channel, with no receiver equalization.

Eye simulator · PRBS7

07 · Bring-up

From plugging in to the first bulk transfer

Attachment is detected on CC, then the SuperSpeed link trains with LFPS and training sequences, then software enumerates the device over the default control endpoint. Click a stage.

08 · Worked example

A 4 KB read with Bulk-Only Transport, packet by packet

The host reads one 4 KB block (eight 512-byte LBAs from LBA 1000h). Bulk-Only Transport wraps each SCSI command in three bulk transfers: a 31-byte Command Block Wrapper (CBW) on the bulk OUT endpoint, the data on the bulk IN endpoint, and a 13-byte Command Status Wrapper (CSW) on bulk IN. Unlike NVMe on PCIe, the host schedules every packet: the device only transmits when the host has asked with an ACK transaction packet carrying a packet count (NumP). Max packet size is 1024 bytes and the endpoint's MaxBurst is 4 or more.

UAS instead of BOTUSB Attached SCSI uses four endpoints (command, status, data-in, data-out) and bulk streams, so many commands can be outstanding and completed out of order, like NVMe queues. Over a fast link BOT's one-command-at-a-time handshake caps throughput; external SSDs reach ~1 GB/s on Gen 2 with UAS.
09 · Packets and throughput

What a data packet costs on the wire

start header: 12 Btype, route, addr, seq, EP, length CRC-16 LCW2 B start payload: up to 1024 B CRC-32 end Data Packet Header (DPH): 16 B, own link-level seq # and retry Data Packet Payload (DPP) Framing ordered sets (start/end, 4 symbols each) delimit the parts. Transaction packets such as ACK, NRDY and ERDY are header-only: 16 B plus framing. LCW = link control word: header sequence number, hub depth, delayed/deferred flags, CRC-5. Not to scale.
10 · Design constraints

Board rules for a 10 Gb/s USB-C port

Impedance and loss
  • 90 Ω differential ± 10 % for SuperSpeed and USB 2.0 pairs.
  • Typical Gen 2 allocation: host board ≈ 8.5 dB, cable ≈ 6 dB, device board ≈ 8.5 dB at 5 GHz (≈ 23 dB total). Check the SoC guide for the host number including the mux.
  • Over budget: shorten, better laminate, or a Gen 2 linear redriver near the connector.
Skew and routing
  • Intra-pair skew ≤ 5 mil (0.13 mm); TX and RX pairs need no matching to each other.
  • P/N polarity inversion is detected and corrected in training: swap within a pair if it saves a via.
  • Keep TX and RX apart; route both receptacle pair sets with equal care: either can be the active one.
AC caps, mux, ESD
  • AC caps on TX only, 75–265 nF (100–220 nF typical), 0201/0402, symmetric, plane voided under pads.
  • The 2:1 orientation mux adds ≈ 1–2 dB at 5 GHz and a stub-free layout is essential around it.
  • ESD diodes ≤ 0.3–0.5 pF on SuperSpeed lines, flow-through footprints, at the receptacle.
  • Avoid common-mode chokes on Gen 2 lanes unless EMC demands them; they add loss and mode conversion.
USB 2.0 pair
  • Connect A6–B6 and A7–B7 at the receptacle with the shortest possible stub (a few mm is fine at 480 Mb/s).
  • 90 Ω; series common-mode choke allowed; ESD with low capacitance (HS eye mask is strict).
CC and VBUS
  • CC pins sit next to VBUS: protect against a 20 V short (PD-capable ports) with rated CC protection.
  • Cold socket: VBUS off until Rd is detected (tCCDebounce 100–200 ms), off within the spec time after detach.
  • Device side: ≤ 10 µF on VBUS at attach (inrush), soft-start larger loads.
Receptacle region
  • Shell grounded to the main ground with many vias; the receptacle footprint is the biggest impedance discontinuity: follow the connector vendor's footprint and plane cut-outs.
  • Return-ground vias beside every signal via; no plane splits under the pairs.
11 · Side by side

USB 3.1 Gen 2 against PCIe Gen 4 for the same SSD

USB 3.1 Gen 2PCIe Gen 4 x4
Rate10 Gb/s × 1 lane16 GT/s × 4 lanes
Encoding128b/132b128b/130b
Usable bandwidth≈ 1.0–1.1 GB/s≈ 7.0–7.2 GB/s
Reference clockNone: independent clocks + SSC on each sideShared 100 MHz REFCLK (common clock)
ChannelDetachable cable, flippable plugFixed board + slot or M.2
Who moves dataHost schedules every transaction (ACK TP with NumP)Device masters DMA into host memory
Flow controlNRDY / ERDY, packet countsCredits (UpdateFC DLLPs)
TX equalizationFixed normative settingNegotiated presets and coefficients
Start-up signallingLFPS bursts, then TSEQ/TS1/TS2Receiver detect, TS1/TS2 at 2.5 GT/s, then speed change
Hot-plugNative (CC detect)Possible but not typical for M.2
12 · When it breaks

Failure modes and debug signatures

SymptomLikely causeCheck / fix
Device works in one plug orientation onlyMux select wrong or one receptacle pair set brokenCheck the CC orientation signal driving the mux; continuity of the second pair set
Enumerates as USB 2.0 (High Speed) onlySuperSpeed link failed: no far-end termination seen, LFPS not detected, training failedxHCI port status (link state stuck in Rx.Detect or Polling); TX/RX swapped; missing AC caps
Links at Gen 1 instead of Gen 2Cable not Gen 2 capable, or Gen 2 capability exchange (LBPM) failed on a marginal channelTry a known Gen 2 cable; check loss budget including mux
Disconnects under load or with long cablesMarginal eye, link-level retries, recovery loops; VBUS droopError counters, protocol analyser; VBUS at the device during write bursts
No VBUS when plugged inRd not detected: CC miswired, Rp missing, dead-battery logicMeasure CC voltage: 0.25–0.61 V with default Rp and Rd
Wi-Fi or GNSS degraded when the drive is busyBroadband radiation from the USB 3 link (2.4 GHz region)Shielded cable and receptacle, good shell grounding, keep antennas away
13 · Self-check

Questions

Why does a USB-C host need a SuperSpeed mux but not a USB 2.0 mux?

Rows A and B carry D+/D− in symmetric positions, and the board shorts them together, so either orientation lands on the same pair. The SuperSpeed pairs are not duplicated in the cable for Gen 1/Gen 2: the plug's single TX/RX set lands on TX1/RX1 in one orientation and TX2/RX2 in the other.

How can the two ends run at "10 Gb/s" from different crystals?

The receiver recovers the clock from the data (CDR). The rate mismatch, up to ±300 ppm plus SSC, is absorbed by elastic buffers that add or drop SKP symbols the transmitter inserts regularly.

What CC voltage does the host see with default Rp (56 kΩ to 5 V) and a 5.1 kΩ Rd?

5 × 5.1 / 61.1 ≈ 0.42 V, within the 0.25–0.61 V window for "Default USB power".

The device answers the host's IN request with NRDY. What happens next?

The host stops polling that endpoint (the link may drop to U1/U2 to save power). When the data is ready the device sends ERDY, and the host reschedules the IN transaction. No bandwidth is spent polling.

Why is BOT slower than UAS on the same Gen 2 link?

BOT allows one command at a time and adds a CBW and CSW round trip to each, so the link idles during flash latency. UAS queues many commands with streams, keeping the link busy while the NAND works.

14 · Further reading

References

  1. USB-IF, Universal Serial Bus 3.1 Specification and USB 3.2 Specification: physical layer (Ch. 6), link layer (Ch. 7), protocol layer (Ch. 8).
  2. USB-IF, USB Type-C Cable and Connector Specification: pinout, CC detection, Rp/Rd values, VCONN, cable requirements.
  3. Intel, eXtensible Host Controller Interface for Universal Serial Bus (xHCI).
  4. USB-IF, Mass Storage Class Bulk-Only Transport and USB Attached SCSI Protocol (UASP).
  5. SoC and device-controller design guides, and Type-C mux / redriver application notes, for board-level numbers on a real design.
PCIe Gen 4 →Automotive Ethernet →CML drivers →I²C →