search
Log In
0 votes
153 views
The following data fragment occurs in the middle of a data stream for which the bytestuffing
algorithm described in the text is used: A B ESC C ESC FLAG FLAG D.
What is the output after stuffing
in Computer Networks
edited by
153 views

2 Answers

0 votes

After stuffing

A B ESC ESC C ESC ESC ESC FLAG ESC FLAG D

0
You forgot to add FLAG bits before and after the data segment.
0 votes

After stuffing

FLAG A B ESC ESC C ESC ESC ESC FLAG ESC FLAG D FLAG

Related questions

0 votes
1 answer
1
112 views
Suppose that data are transmitted in blocks of sizes 1000 bits. What is the maximum error rate under which error detection and retransmission mechanism (1 parity bit per block) is better than using Hamming code? Assume that bit errors are independent of one another and no bit error occurs during retransmission.
asked Mar 16, 2019 in Computer Networks ajaysoni1924 112 views
0 votes
0 answers
2
61 views
A block of bits with n rows and k columns uses horizontal and vertical parity bits for error detection. Suppose that exactly 4 bits are inverted due to transmission errors. Derive an expression for the probability that the error will be undetected.
asked Mar 16, 2019 in Computer Networks ajaysoni1924 61 views
0 votes
0 answers
3
0 votes
1 answer
4
100 views
Sixteen-bit messages are transmitted using a Hamming code. How many check bits are needed to ensure that the receiver can detect and correct single-bit errors? Show the bit pattern transmitted for the message 1101001100110101. Assume that even parity is used in the Hamming code.
asked Mar 16, 2019 in Computer Networks ajaysoni1924 100 views
...