The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
283 views

In a data link protocol, the following character encoding is used:
A → 01000111 B → 11100011 FLAG → 01111110 ESC → 11100000
Assuming that byte stuffing is employed for the four character frame A B ESC FLAG, transmitter sends it as:

A. 01111110 01000111 11100011 11100000 11100000 01111110

B. 01111110 01000111 11100011 11100000 11100000 01111110 01111110

C. 01111110 01000111 11100011 11100000 11100000 11100000 01111110 01111110

D. None of these

asked in Computer Networks by Junior (615 points) | 283 views

1 Answer

+2 votes

Answer would be C.

First octet represents Start and Last Octet represent Stop.

And both ESC and FLAG will follow a Escape character so as to not get misinterpreted during communication.

01111110[START] 01000111[A] 11100011[B] 11100000[ESC] 11100000[ESC] 11100000[ESC] 01111110[FLAG] 01111110[STOP]

answered by Junior (551 points)

Related questions

+8 votes
2 answers
1
asked Sep 20, 2017 in Computer Networks by junaid ahmad Loyal (9.1k points) | 308 views
+1 vote
1 answer
2
+2 votes
2 answers
5
asked Jul 3, 2017 in Computer Networks by chandra sai Active (1.3k points) | 333 views
0 votes
3 answers
6


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

43,964 questions
49,518 answers
162,493 comments
65,759 users