371 points · by WithinReason · 4y ago · 168 comments
The tables would benefit from mentioning the coding (8/10 or 128/132) as IMO it's one of the most confusing bits when you see the effective data rates:
* USB 3.2 Gen 1x2 has a nominal data rate of 10G (2 lanes at 5G) with a raw throughput of 1GB/s (effective data rates topping out around 900MB/s)
* USB 3.2 Gen 2x1 has the same nominal data rate of 10G (1 lane at 10G) but a raw throughput of 1.2GB/s (and effective data rates topping out around 1.1GB/s)
The difference is that Gen 1x uses the "legacy" 8/10 encoding, while Gen 2x uses the newer 128/132 encoding, and thus has a much lower overhead (around 3%, versus 20).
I would be happy to improve it and add encoding. I am surprised by some of the summary entries on Wikipedia (https://en.wikipedia.org/wiki/USB4). Looks like USB4 "reverted" to 128b/132b. It is accurate?
That's also why USB 3.1 and 3.2's rebranding of previous versions is so confusing and a pain in the ass to keep straight: USB 3.2 1x1 is USB 3.1 Gen 1 is USB 3.0 (ignoring the USB 2.0 BC).
12 Mbps -> 1.43 MiB/s -> 1.5 MB/s
480 Mbps -> 57 MiB/s -> 60 MB/s
5000 Mbps (5 Gbps) -> 596 MiB/s -> 625 MB/s
10000 Mbps (10 Gbps) -> 1192 MiB/s -> 1250 MB/s
20000 Mbps (20 Gbps) -> 2384 MiB/s -> 2500 MB/s
40000 Mbps (40 Gbps) -> 4768 MiB/s -> 5000 MB/s
The so-called 5 Gb/s USB has a data rate of 4 Gb/s.
The marketing data rates for Ethernet are true, i.e. 1 Gb/s Ethernet has a 1 Gb/s data rate, but a 1.25 Gb/s encoded bit rate over the cable.
The marketing data rates for the first 2 generations of PCIe, for all 3 generations of SATA, and for USB 3.0 a.k.a. "Gen 1" of later standards, are false, being advertised as larger with 25% (because 8 data bits are encoded into 10 bits sent over the wire, which does not matter for the user).
All these misleading marketing data rates have been introduced by Intel, who did not follow the rules used in vendor-neutral standards, like Ethernet.
So PCIe 1 is 2 Gb/s, PCIe 2 & USB 3.0 are 4 Gb/s and SATA 3 is 4.8 Gb/s.
So USB "5 Gbps" => 500 MB/s (not 625 MB/s), and after accounting for protocols like "USB Attached SCSI Protocol", the maximum speed that one can see for an USB SSD on a "5 Gbps" port is between 400 MB/s and 450 MB/s.
The same applies for a USB Type C with 2 x 5 Gb/s links.
As other posters have already mentioned, USB 3.1 a.k.a. the "Gen 2" of later standards has introduced a more efficient encoding, so its speed is approximately 10 Gb/s.
The "10 Gbps" USB is not twice faster than the "5 Gbps" USB, it is 2.5 times faster, and this is important to know.
Can you confirm with the rule to be used.
Raw Speed = Nominal / Encoding
UMS Speed = Raw / UMS overhead
In the case of 3.0 that would be:
Nominal = 625 MiB/s
Raw = 625 - 20% = 500 MiB/s
UMS = 500 - 20% = 400 MiB/s
USB is a triumph of marketeers over engineers. All these things are called USB because USB sells (see also: Bluetooth).
The article is dated May 5, 2025. I've long been wondering about the future of USB.
Putting a static date from 3 years in the future seems like a quick a dirty hack to do the same thing.
A pixel of an image is 3 Bytes. A 1920x1080 FullHD image is 6.2 MB. At 30 frames per second, second of a FullHD video is 186 MB. How did they do that?
Answer: frames are transferred as JPEG files. Even a cheap $15 webcam is a tiny computer (with a CPU, RAM, etc), which runs a JPEG encoder program.
4K @ 60fps = 1.4GB/sec. USB 3, even with 2 lanes, will have trouble with that.
I haven't figured out why they chose to remove it, but your point about licensing cost combined with them not advertising it much as a feature, and most of their competitors not including "proper" video encoding might explain it.
Edit: Found an official explanation here: https://www.logitech.com/en-us/video-collaboration/resources... TLDR, they figure most computers at that point had HW encoders.
Same goes on the other hand for the receiving end - decoding a stream of JPEGs is just much simpler in both CPU use and code complexity than dealing with something like H.264.
But then also I think some webcams use H264? I remember reading that somewhere.
It's not fitting into anything I fear, best case scenario the effective bulk transfer rate of USB2 is 53MB/s.
60 is the signaling rate, but that doesn't account for the framing or the packet overhead.
That limit is too high even as a theoretical max.
You could do raw 720p.
If we take the AR0330 sensor used in the USB Camera C1[2] as an example, it has a native resolution of 2304H x 1296V and outputs 10 bits per native pixel after internal A-Law compression[3] for a total raw frame size of 3.56 MiB, assuming optimal packing. The corresponding image, demosaiced and downscaled to Full HD (1920x1080), in RGB with eight bits per channel would be 5.93 MiB.
[0] https://en.wikipedia.org/wiki/Bayer_filter
[1] https://en.wikipedia.org/wiki/Demosaicing
[2] https://www.kurokesu.com/shop/cameras/CAMUSB1
[3] https://www.onsemi.com/products/sensors/image-sensors/ar0330
Also 4:2:0 is 6 values per 4 pixels. 1.5 bytes per pixel at 8-bit.
Also the raw YUV 4:2:0 is 1.5 bytes per pixel so that's doing half of the "compression" work for you.
USB 4 (opt) AKA USB 4 Gen3x2
They had a chance to fix their colossal fuckup and they decided not to.
It was super obvious with usb 3 and its sub versions, and it gets even worse with 4.
In other words, the incentives here are for USB-IF to promote customer confusion, not to reduce it, because that confusion can sell devices and push profit margins.
It's absolutely terrible that the EU is giving this group a legal monopoly on the ability to create and proliferate new standards. Their incentives fundamentally run against the consumer and they have repeatedly acted against the interests of the consumer. Unlike HDMI, there is no VESA to counterbalance them, it is USB or nothing, so you'll have to deal with these crappy standards going forward.
--
HDMI is doing something similar now too - "HDMI 2.1" is a completely hollow standard where every single feature and signaling mode added since HDMI 2.0 is completely optional. You can take HDMI 2.0 hardware and get it recertified as HDMI 2.1 without any changes - actually you must do this since HDMI Forum is not issuing HDMI 2.0 certifications any more, only HDMI 2.1 going forward, the new standard "supercedes" the old one entirely.
So - "HDMI 2.1" on the box doesn't mean 4K120 support, it doesn't mean VRR support, it doesn't mean HDR support. It could actually just literally be HDMI 2.0 hardware inside. You need to look for specific feature keywords if that is your goal.
https://arstechnica.com/gadgets/2021/12/the-hdmi-forum-follo...
They should've never allowed cables to only provide some capabilities and still get the branding. Having capabilities for connectors was fine imo, but also accepting them with cables was bad because you cannot really find out what it supports and where the issue originates of something goes wrong
While I get the technical reasoning about high frequency/attenuation etc that limits cable length as speeds go higher, there are obviously some practical limits to how short cables can be.
How would that be solved, I don't know.
Having more data lines in a serial bus is interesting, as the whole reasoning to go from parallel lines (e.g. Centronics, ATA/SCSI or ISA/PCI buses) to serial (SATA/SAS, PCIe, USB) was that coordinating multiple data lines got impossible due to physical limitations where e.g. minimal differences in cable lengths started to matter).
Maybe. Though Infiniband's currently at 100Gbps per lane on a 1.5 meter passive cable. And active cables can give you a moderate boost while still on copper.
Also, I think there's a difference between active and passive USB-C cables, or something like that.
If you're happy with it then probably not.
The main possible issues are that it's more expensive and you get shorter and thicker (less flexible) cables, a passive non-optical TB (or USB4) cable will top out around 1m.
Less capable cables can be longer and thinner which is convenient for e.g. mice and such small devices. But otherwise may not matter overly much.
At one point I remember hooking up a computer being like one of those shape puzzles we give children. If you can match them they'll work. No two of my devices used the same cable or port, but if it fit it'd work.
Keyboard switched to PS/2 so those and PS/2 mice were confusing, but eventually they standardized on colours.
USB came out and you could just plug it in wherever. This was great.
And now? 20 combinations of cable features with the same socket but all do something else. I can only imagine what the return rate will be for stuff like this.
(It's really popular and easy to bash on USB on this forum, but it turns out that in real life your USB-C device will "just work" for pretty much all setups outside really fringe high performance ones. And even those will usually just negotiate lower rate.)
It's also missing - mini-b 4 wire (older phones, etc) - micro-b 4 wire (most electronics prior to type c) - micro-b 8 wire (mostly seen only found on external 2.5" HDDs)
There were also a bunch of other connectors (mini-a, mini-a/b, etc) but they are very rare.
I have 2 different generations of USB-C hosts, and they behave quite differently when approaching max cap, especially with high-quality low-latency audio (USB-C was supposed to be de-facto replacement for FireWire).
USB-C is the first time cables have the same connector on both sides, so it obsoletes USB-A and USB-B. But what is sent over USB-C? Can be USB 3 with which it is often conflated because they came around the same time, but it can also be USB 2, so it is a bit hard to tell. But USB 3 can use old style USB-A as well (the blue plugs with the same shape as the classic USB plugs) and USB-C (the microUSB plugs with an extension off to the side).
...or Thunderbolt, USB 4, DisplayPort (through Alt-mode or encapsulated in Thunderbolt), or HDMI (Alt-mode), or MHL (Alt-mode), USB Power Delivery...
Unfortunately, not every cable with USB-C connectors can carry all of these. E.g. there are USB-C cables that can only carry USB 2. Or cables that can carry USB 3, but not Thunderbolt. Also, not all cables can carry the same wattage for power delivery.
It's a mess.
As someone who spent many years using a mix of 25/50/68/80-pin fast/ultra/… single-ended, LVD and HVD parallel SCSI devices, however, USB-C/Thunderbolt cabling still feels like a breath of fresh air.
Usually a full-size USB-A, you mean, because what we commonly know as mini-USB and micro-USB are actually mini-B and micro-B, which have corresponding (but now rarely used) micro-A and micro-A ports. Before USB-OTG, USB used to be an explicitly directional protocol, with a master and a slave device.
https://upload.wikimedia.org/wikipedia/commons/8/82/USB_2.0_...
Usb A is a host side connection Usb B (normal/mini/micro) is a client side connector Usb C is a 2 way connector.
Each of them can be implemented for each USB version, except USB C came later and makes no sense befor USB 3.
Then USB versions added features, signalling conventions and wires. But the USB A and B connector are backward compatible all the way to USB 1.0 1.5Mbit/s
The "USB A - USB type C cables" that i had already only worked up to 480MBit/s.
someone please make similar one-page with tables about PCI Express, Ethernet, HDMI...
Today I learn that there is a 25 and 40G-BASE-T on copper, these PHY must heat like hell haha.
I'll update the guide when I rewire my house with fiber optics (currently I don't even use the full potential of cat 6), but contributions are welcomed.
https://datastack.net/datastack/usb
I can transfer the project to you if you like.
Maybe there's someone in the world wondering if it's possible to emulate MarioKart from his office PC to the living room with a 10m HDMI and USB3 cable... Just guessing :)
* "USB4 20 Gbit/s Transport" (= USB4 20Gbps = USB4 Gen 2x2) is required for host to support
* "USB4 40 Gbit/s Transport" (= USB4 40Gbps = USB4 Gen 3x2) is not
Also USB4 apparently only requires support for tunneling "SuperSpeed USB 10Gbps" (USB 3.2 Gen 2×1), "SuperSpeed USB 20Gbps" (USB 3.2 Gen 2x2) is optional.
There's no problem in making a cable with two fibre leads for data and two (at higher lengths thicker to reduce issues with voltage drop) power lines.
Is the official name
USB 3.2 Gen 2x2
or
USB 3.2 Gen 2×2
(x vs ×)?