Question 1
In bit stuffing at the Data Link Layer, a zero is stuffed after how many consecutive 1s in the data payload to prevent accidental flag generation (flag = 01111110)?
To prevent accidental matching with the flag byte 01111110 (which has 6 consecutive 1s), a '0' is inserted after every 5 consecutive 1s in the data stream.