0
10kviews
Why there is need for framing? The following encoding is used in a data link protocol: A: 01000111; B: 111000111; FLAG: 01111110; ESC: 11100000

Show the bit sequence transmitted (in binary) for the four character frame:

A B ESC FLAG

When each of the following framing methods are used:

a. Character Count

b. Flag bytes with byte stuffing

c. Starting and Ending flag bytes, with bit stuffing

1 Answer
2
457views

Need for framing

Since the physical layer merely accepts and transmits a stream of bits without any regard to meaning or structure, it is upto the data link layer to create and recognize frame boundaries. This can be accomplished by attaching special bit patterns to the beginning and end of the frame. If these bit patterns can accidentally occur in data, special care must be taken to make sure these patterns are not incorrectly interpreted as frame delimiters.

This is how the bits will be transmitted for frame A B ESC FLAG:

a. Character count

enter image description here

b. Flag bytes with byte stuffing

enter image description here

c. Starting and Ending flag bytes, with bit stuffing

enter image description here

Please log in to add an answer.