Enter the number of characters into each frame[0]:5
Enter the number of characters into each frame[1]:6
Enter the number of characters into each frame[2]:5
Enter the 5 characters into the frame[0]:a
b c d e
Enter the 6 characters into the frame[1]:f
g h i j k
Enter the 5 characters into the frame[2]:l
m n o p 00000110-01100001-01100010-01100011-01100100-01100101-00000111-01100110-01100111- 01101000-01101001-01101010-01100011-00000110-01101100-01101101-01101110-01101111- 01110000
Character Stuffing:
Enter the stuffing character:m
Enter the starting delimiter:$
Enter the ending delimiter:&
Enter the number of frames:2
Enter the string into frame[0]:roshan
Enter the string into frame[1]:mallipeddi
The stuffed stream is as:m$roshanm&m$mmallipeddim&
The unstuffed stream is as:roshanmallipeddi Bit Stuffing:
Enter the number of frames:3
Enter the stream of bits into the frame[0]:0101
Enter the stream of bits into the frame[1]:0110
Enter the stream of bits into the frame[2]:0101
The stuffed stream is 01111110010101111110011001111110010101111110 The unstuffed stream is 010101100101
Experiment 2:
Enter the frame:010101100101
Menu 1.CRC-12 2.CRC-16 3.CRC-CCIP Enter your choice:3 the stuffed frame is: 0101011001011100001111110110