From: linux@horizon.com
To: linux-kernel@vger.kernel.org
Cc: linux@horizon.com
Subject: Re: single bit errors on files stored on USB-HDDs via USB2/usb_storage
Date: 10 Dec 2006 03:44:53 -0500 [thread overview]
Message-ID: <20061210084453.13702.qmail@science.horizon.com> (raw)
How the wires can cause single-bit errors is a bit beyond me;
USB protects every bit on the wire well enough that communication
errors should be detected.
Every packet starts with an identifier byte; this contains a 4-bit packet
identifier repeated twice.
Some small "token" packets have an 11-bit payload (7 address and 4
endpoint bits) and a 5-bit CRC.
Any corruption of those would result in USB state machine confusion and
at least large data gaps.
Packets with an actual data payload are protected with a CRC-16.
Not quite as strong as Ethernet, but sufficient to detect all errors of
three bits or less, and all burst errors of 16 consecutive bits or less.
A single-bit flip can't get past a CRC-16 unless you flip at least
three bits in the CRC as well. The actual pattern depends on the bit
position and averages 8 bits; given the documented bit error positions
and a better knowledge of the ATA-over-USB encapsulation protocol,
the actual CRC changes could be computed.
Now, I can imagine a USB slave controller so cheap and/or buggy that it
doesn't check the CRC, but I'd think that most would. Checking a CRC
is hardly a novel challenge.
next reply other threads:[~2006-12-10 8:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-10 8:44 linux [this message]
2006-12-10 15:37 ` Clemens Koller
-- strict thread matches above, loose matches on Subject: below --
2006-12-07 18:08 [usb-storage] " Alan Stern
2006-12-07 19:41 ` Matthias Schniedermeyer
2006-12-07 23:45 ` Pete Zaitcev
2006-12-08 9:16 ` Matthias Schniedermeyer
2006-12-08 12:21 ` Stefan Richter
2006-12-08 16:18 ` John Stoffel
[not found] <fa./xvi+/Ji/HqNkvnGjUt4pIS9goM@ifi.uio.no>
2006-12-07 0:02 ` Robert Hancock
2006-12-07 9:03 ` Matthias Schniedermeyer
[not found] ` <fa.nPT9ZJ5poT8fZx3aWy0MqRK/gto@ifi.uio.no>
[not found] ` <fa.aML3aAeWqfac08XNpQa7Zu0AC8w@ifi.uio.no>
2006-12-08 3:18 ` Robert Hancock
2006-12-08 9:07 ` Matthias Schniedermeyer
2006-12-08 10:25 ` Stefan Richter
2006-12-08 10:39 ` Matthias Schniedermeyer
2006-12-08 11:01 ` Oliver Neukum
2006-12-08 12:27 ` Stefan Richter
2006-12-09 6:11 ` Ben Nizette
2006-12-09 8:18 ` Oliver Neukum
2006-12-09 10:16 ` Ben Nizette
2006-12-06 22:01 Matthias Schniedermeyer
2006-12-07 22:10 ` DervishD
2006-12-07 22:57 ` Matthias Schniedermeyer
2006-12-07 23:05 ` Jan Engelhardt
2006-12-08 9:32 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061210084453.13702.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®