Jason S
Jason S

Reputation: 189786

error detection/correction/recovery in serial protocols

I have some designing to do for a serial protocol and am running into some questions that I figure must have been considered elsewhere.

So I'm wondering if there are some recommendations for best practices in designing serial protocols. (Please either state a fact that is easily verifiable, or cite a reputable source if you make a claim.) General recommendations for websites/books are also welcome.

In particular I have to deal with issues like

Any suggestions?

Upvotes: 3

Views: 3754

Answers (2)

Craig McQueen
Craig McQueen

Reputation: 43456

Packet delimiting

For syncing to packet boundaries, typically you have a byte or byte sequence that identifies the packet boundary, which cannot occur within the packet itself. If the packet data happens to contain that identifier, then you have to "escape" (aka byte stuff) it.

Examples:

Packet verification

Various options are:

Error correction etc

Good questions. I've not had much experience with that.

Upvotes: 6

jldupont
jldupont

Reputation: 96806

Have you considered FEC (Forward Error Correction)?

This procedure is very often used in "physical" level communication protocols such as WDM (Wavelength Division Multiplexing) / OTN (Optical Transport Network).

Upvotes: 3

Related Questions