SOH (Start of header)
SOT (Start of text)
EOT (End of text)
ESC (Escape !!!)
Bit framing:
Do notimpartspecial meaning to some
byte patterns
Therefore:
There is noESCAPE character
in
bit-oriented framing protocols
!!!!!
Avoid using the flag pattern in
a frame
Fact:
Bit-orientedframing protocols uses:
The bit-stuffingtechnique
to avoidtransmitting
a flag pattern in the
data portion
Bit Stuffing
Bit stuffingtransmission rule:
Whenever the
sender
has transmitted5 consecutive "1" bits:
the sender
must
insert
one 0 bit into the
transmission
Example:
Bit stuffingreceive rule:
When "011111" is received:
Next bit = 0 ===> discard this "0" bit (it was a stuffed 0 bit)
Next bit = 1 ===> Next bit = 0 ====> Flag detected
Next bit = 1 ====> Transmission error detected