520 views

2 Answers

1 1 vote

Flag: The special pattern is 01111110.

Sender's Rule (Stuffing): To prevent the flag pattern from accidentally appearing in the data, the sender inserts (stuffs) a 0 after any sequence of five consecutive 1s.

Receiver's Rule (Destuffing): The receiver does the opposite. It scans the data, and any time it finds a 0 that follows five consecutive 1s, it removes that 0.

Applying the Rule

We need to perform the receiver's rule (destuffing) on the given output string.

  • Stuffed String: 011111011111001

Let's scan the string and look for the pattern 111110:

1. First occurrence:

  • 011111011111001
     
  • The scanner sees five 1 s ( 11111 ) followed by a 0.
     
  • This 0 must have been stuffed. The receiver removes it.
     
  • String after first removal: $011111+11111001=01111111111001$

2. Second occurrence:

  • Now, the scanner continues its work on the new string: 01111111111001
     
  • It scans past the first set of 1s and finds another group of five 1s.
     
  • 01111111111 0 ** 01
     
  • The scanner sees five 1s (the ones in the middle) followed by a 0.
     
  • This 0 must also have been stuffed. The receiver removes it.
     
  • String after second removal: $01111111111+01=0111111111101$

After removing both stuffed $\theta \mathrm{s}$, the original input string is 0111111111101.

This matches Option B.

0 0 votes

Ans :

The receiver performs "bit de-stuffing." The rule is to remove any 0 that immediately follows five consecutive 1s.

  • Output String: 011111011111001

  • The first 0 (in bold) follows five 1s, so it is removed.

  • The second 0 (in bold) follows five 1s, so it is also removed.

Original Input: 0111111111101

Answer:
Position:
Show:

Related questions

3 3 votes
2 2 answers
452
452 views
GO Classes asked Oct 31, 2025
452 views
A router has the following entries in its routing table:\[\begin{array}{lll}\text{Destination} & \text{Subnet Mask} & \text{Interface} \\172.16.0.0 & 255.255.0.0 & \text{...
3 3 votes
2 2 answers
364
364 views
GO Classes asked Oct 31, 2025
364 views
Consider the entries shown below in the forwarding table of an IP router. The router uses the longest prefix match rule. The notation “/N” in a prefix indicates a subne...
6 6 votes
2 2 answers
364
364 views
GO Classes asked Oct 31, 2025
364 views
Two hosts, $A$ and $B$, are connected via a single packet switch. The links from $A$ to the switch and from the switch to $B$ both have a data rate of $2 \times 10^7$ bit...
3 3 votes
3 3 answers
362
362 views
GO Classes asked Oct 31, 2025
362 views
  Consider a network of $6$ routers (R1 to R6). The topology of the network and the cost of each link are described by the following Graphviz DOT code.All routers use a d...