I'm developing app containing TCP, UDP, serial connections. I heard that there are some errors or losses in communication. However, I don't know exactly what kind of errors should be handled.
What kind of errors are possible for each method?
change of some bits ex) 11001100 -> 11000101
reversed order of some bytes 00000001 00000010 00000011 -> 00000001 00000011 00000010
some ommited bytes 00000001 00000010 00000011 -> 00000001 00000011
some ommited bits ...000000010000001000000011... -> ...00000010000001000000011... (... 1 2 3 ...) -> (... 2 4 (6 or 7) ...)
Is there any more kinds of error? I think 4 is most difficult case to handle, is it possible case?