
Write a Java program to implement (simulate) both serial communication and sliding window protocol. Your program should consist of two threads (or processes) representing sender and receiver respectively. Each thread has two separate layers, one for physical layer (similar to RS232) and the other for data link layer (sliding window protocol). The data link layer takes a text file, forms packets with frame information, and pass them to the physical layer. The physical layer converts the text of a frame into ASCII formats, attaches parity and delimiters, and transmits character by character to the receiver. The two layers at the receiver side do the oposite function as the sender.
Note: Item 8 is needed to test your sender program and item 9
is used to test your receiver program.

Please send your comments to
Dr. Qing Yang 