6,602 views
0 votes
0 votes
The following character encoding is used in a data link protocol:
A: 01000111 B: 11100011 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 is used:
(a) Byte count.
(b) Flag bytes with byte stuffing.
(c) Starting and ending flag bytes with bit stuffing.

1 Answer

0 votes
0 votes

Frame Format: A B ESC FLAG

a. in Byte count method the number of bytes in a frame is mentioned in the beginning of a frame

Format=00000100 01000111 11100011 11100000 01111110

the first Byte has binary value=4 which indicates that next 4 bytes are part of current frame

b. Flag Byte will be inserted at the beginning and end of frame. also escape byte will be inserted before escape and flag bytes occurring in the data part of the frame

Format=FLAG A B ESC ESC ESC FLAG FLAG

=01111110 01000111 11100011 11100000 11100000 11100000 11100000 01111110 01111110

c. flag bytes are inserted at the beginning and of frame along with bit stuffing

01111110 01000111 11100011 11100000 011111010 01111110

Related questions

2 votes
2 votes
1 answer
1
0 votes
0 votes
1 answer
2
ajaysoni1924 asked Mar 15, 2019
2,537 views
An IP packet to be transmitted by Ethernet is 60 bytes long, including all its headers.If LLC is not in use, is padding needed in the Ethernet frame, and if so, how manyb...
0 votes
0 votes
0 answers
3