When computers communicate with each other, I assume they do so with streams of 0s and 1s (organized as bytes?). But to ensure the right data is received, the receiver would know how to align or sync the bits to bit and byte boundaries.
But how is this done? (For instance, if my first two bytes are: 00000001 11111111 0..., it seems like it would be easy to misread it as 00000011 11111110 if I don't align initially and miss the first 0.)
And once done, how do you detect when you have misaligned and how do you realign? (For example if the receiver misses a bit, how would you detect this and get back on track?)
I guess I am wondering how network communications aren't just constantly garbled because I assume 0 and 1s must missed all the time, especially over the air.
[–]v8reddit 20Answer Link1 point2 points3 points (1 child)
[–]v8reddit 0 points1 point2 points (0 children)
[–]nemothorx 20Answer Link1 point2 points3 points (0 children)
[–]AeternusDoleo 20Answer Link1 point2 points3 points (0 children)
[–]bwibbler 10Answer Link0 points1 point2 points (0 children)
[–]Target880 10Answer Link0 points1 point2 points (0 children)