Sliding window protocol program in java

broken image

The network program acts as a transport service, simulating a network that passes messages between the sender and receiver. It implements the rdt 3.0 receiver protocol. The receiver must assemble the individual segments in the correct order to recreate the original message. Upon entry of a message to send, your sender must segment the data and send messages in individual segments, one at a time according to the rdt 3.0 sender protocol. For the sender to obtain data to send from the layer above (e.g., user), your program must prompt the user for input. The sender is waiting for 3 events in rdt3.0: data to send, timer to go off, and acks from the network. All three programs must use UDP message passing and only use one UDP socket for communication. You must write three programs written in Java to model the sender, the receiver, and the network that simulates a network connecting a sender with a receiver. UVERVIEW This assignment requires you to implement the 1-bit Sliding Window Protocol rdt 3.0 (Alternating Bit protocol) as described in class.

broken image