Suppose that the following character coding is used in a data link protocol:ABFLAGESCAssume a frame to be sent over a transmission link contains the following payload:ABESCFLAGShow the bit sequence of the payload transmitted over the link,i. If the frarning protocol uses bye stuffing.ii. If the framing protocol uses bit stuffing.Suppose both the starting and ending delimiter of a frame is 01 1 I I 1 1 0.
Question
Suppose that the following character coding is used in a data link protocol:ABFLAGESCAssume a frame to be sent over a transmission link contains the following payload:ABESCFLAGShow the bit sequence of the payload transmitted over the link,i. If the frarning protocol uses bye stuffing.ii. If the framing protocol uses bit stuffing.Suppose both the starting and ending delimiter of a frame is 01 1 I I 1 1 0.
Solution
i. If the framing protocol uses byte stuffing:
- Start with the payload: ABESCFLAG
- Add the starting delimiter: 01 1 I I 1 1 0
- Replace any occurrence of the delimiter in the payload with an escape character (E): ABESCEFLAG
- Add the ending delimiter: 01 1 I I 1 1 0
- The bit sequence of the payload transmitted over the link is: 01 1 I I 1 1 0 ABESCEFLAG 01 1 I I 1 1 0
ii. If the framing protocol uses bit stuffing:
- Start with the payload: ABESCFLAG
- Add the starting delimiter: 01 1 I I 1 1 0
- Replace any occurrence of the delimiter in the payload with the delimiter followed by an extra 0: ABESC0FLAG
- Add the ending delimiter: 01 1 I I 1 1 0
- The bit sequence of the payload transmitted over the link is: 01 1 I I 1 1 0 ABESC0FLAG 01 1 I I 1 1 0
Similar Questions
Byte stuffing means adding a special byte to the data section of the frame when there is a character with the same pattern as the ______.a.none of the aboveb.flagc.trailerd.header
Bit Stuffing vs Byte(Character) Stuffing
Question No. 1: (Marks 10) Suppose a Station A transmits a message containing five characters to Station B using Even Parity encoding to ensure data integrity during transmission. Each character consists of 8 bits encoded in the ASCII. Station B receives the message of five 9-bit data elements and needs to extract the 8-bit data message from each element and decode it using ASCII to form meaningful words. The data elements received by Station B are: Received 9-bit Data Elements: 010101100 010101010 010011001 010011010 010100110 Assuming the data is received correctly without any errors by Station B, you are required to do the following tasks: 1. Extract 8-bit Data Message: Remove the Parity bits to extract the 8-bit data message from each 9-bit received element. 2. Decode and Extract using ASCII: Convert each 8-bit data message into its corresponding ASCII character to extract the meaningful words. Give your answer in the following table: Received Message 010101100 010101010 010011001 010011010 010100110 Data message (Bits)? Decoded Message?
Consider the following sentence (you don’t need to consider the spaces betweencharacters).“MADAM I AM ADAM”1. Assume that 8-bit extended ASCII encoding is used to represent the above sentence.Find out how many bytes are required to represent the above sentence.2. What is the minimum/optimum number of bits needed to represent the abovesentence?3. Calculate the number of bits that are necessary to represent the above sentence usingHuffman encoding.4. Using Huffman encoding how would you represent the following sequence ofcharacters? “DAMMA”
.The information which is transferred to the receiver has to be interpreted this process is called _____ (A) Encoding (B) Decoding (C) Opening (D) Closing
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.