Final answer:
PPP uses byte stuffing to prevent accidental flag bytes within the payload from causing confusion due to improved error detection, enhanced synchronization, and simplified implementation.
Step-by-step explanation:
PPP uses byte stuffing to prevent accidental flag bytes within the payload from causing confusion because of improved error detection, enhanced synchronization and simplified implementation.
- Improved error detection: Byte stuffing allows the receiver to easily identify the start and end of a frame by looking for the flag byte. If flag bytes were allowed within the payload, it would be difficult for the receiver to distinguish between the actual frame boundary and a flag embedded within the payload.
- Enhanced synchronization: Byte stuffing ensures that the receiver stays synchronized with the transmitter. The receiver knows where each frame starts and ends, enabling it to correctly interpret the data.
- Simplified implementation: Byte stuffing is generally simpler to implement compared to bit stuffing. It involves inserting a special byte to indicate the end of a frame, which is easier to implement and understand than manipulating individual bits.