The professor gave these instructions:
You will design a protocol to do chat and send/receive files.
Your protocol should be either UDP or TCP.
1. design a header.
A header has fields (for example IP header). what fields would you like to have.
2. The protocol will have some message exchanges between the two sides.
What messages would you design? (think about messages exchanged by DHCP protocol)
Each message has a purpose.
for chat functionality, you would want to see if the other party is online or not.
Think about how you would check that … we can discuss it in the class.
For files send/receive … think of possibilities – file does not exist in the directory, file received is corrupted, request one file or multiple files in one command? You are free to choose what messages you want.