For the following three (3) questions, assume that the link layer uses the flag bytes with byte stuffing approach for framing, with the following details:
The beginning of a data frame is indicated by the special flag bytes: DLESTX
The end of a data frame is indicated by the special flag bytes: DLEETX
The special escape bytes DLE are used for escaping accidental occurrences of either the flag bytes or the escape bytes within the data.
For simplicity, assume that no other header/trailer information is added to the data.
The following byte streams represent data that needs to be framed by the link layer on the sender’s side. Derive the resultant byte streams by adding necessary flag bytes and performing byte stuffing.
1. PZDLEAFRGSTXGYK
2. PARSDLEETXZKPUM
3. ASTXDLELEFTDAOY