Question: Assignment The Trivial File Transfer Protocol ( TFTP ) is an Internet software utility for transferring files that is simpler to use than the File
Assignment
The Trivial File Transfer Protocol TFTP is an Internet software utility for transferring files that is simpler to use than the File Transfer Protocol FTP but less capable. It is used where user authentication and directory visibility art not required. For example, it is used by Cisco routers and switches to transfer images of the operating system fromto the devices.
NOTE: TFTPs port is a systemOS port This is below and therefore you cannot bind a Socket to it unless you have administrative access rights on the machine you are working. To avoid any complications you can use any port to bind server sockets.
Task : Implementation of the Trivial File Transfer Protocol TFTP
For this task you need to implement in Java the Trivial File Transfer Protocol TFTP as specified in RFC B You will submit source code for a client and server application that 'speak' the TFTP protocol. You will built your protocol on top of UDP. Compared to the specifications in the RFC you will implement a slightly simplified version:
Support for octet mode only. The files should be transferred as a raw sequence of bytes. Do not read, write or transfer files as characters.
Support only for error handling when the server is unable to satisfy the request because the file cannot be found.
No support for error handling when data duplication occurs.
The client and server applications should be simple Java console applications. The server should operate ie read and write files in the directory where it is started from. The server should support simultaneous file transfers to and from multiple clients. The client should just read command line arguments or have a very simple consolebased menu eg "press to store file, press to retrieve file" and execute user commands ie reading or writing a file
Hint: the simplest way to implement timeouts is by calling the setSoTimeout method on the DatagramSocket objects assuming that you are using blocking IO If the timeout expires, a java.net.SocketTimeoutException is raised, though the DatagramSocket is still valid.
Task : Implementation of an even simpler version of TFTP on top of TCP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
