Basic CS-Networks [TCS Placement]: Sample Questions 5 - 5 of 133

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 5


Describe in Detail


Define Character Stuffing?


  • Byte stuffing (or character stuffing) adds a special byte to the data section of the frame when there is a character with the same pattern as the flag. The data section is stuffed with an extra byte- usually called the escape character (ESC) , which has a predefined bit pattern. Whenever the receiver encounters the ESC character, it removes it from the data section and treats the next character as data, not a delimiting flag.
  • In the second method, each frame starts with the ASCII character sequence DLE STX and ends with the sequence DLE ETX. (where DLE is Data Link Escape, STX is Start of Text and ETX is End of Text.) . This method overcomes the drawback of increasing character count. If the destination loses synchronization, it can look for DLE STX and DLE ETX characters.
  • If however, binary data is being transmitted then there exists a possibility of the characters DLE STX and DLE ETX occurring in the data. As this will interfere with framing, a technique called character stuffing is used.
  • The sender՚s data link layer inserts an ASCII DLE character just before the DLE character in the data. The receiver՚s data link layer removes this DLE before this data is given to the network layer.
  • Character stuffing is closely associated with 8-bit characters and this is a major hurdle in transmitting arbitrary sized characters.
Given the Image is Define the Character Stuffing

Developed by: