Segmentation of a file and forming ftp datagrams


Tools needed for the assignment:
Download a HEX editor from the web that can be used in analyzing your programs/data generation
Find the RFC that defines the FTP protocol.
Q11. Take any non text file (e.g. word document, mpg, excel or any application centric file)
2. Segmentation of a file and forming FTP datagrams: Read first 'x' number of bytes and use them as part of payload section of an FTP datagram
3. Encapsulate the FTP datagram into TCP datagram (generation of TCP packets)
4. Take the TCP datagram and encapsulate it into an IP Packet
5. Repeat steps 1-3 until all the contents of the file have been segmented and the corresponding IP packets have been generated.
6. Dump the generated IP packets into a different File.
7. Use the hex editor (or any other tool) to compare the payload content of the IP packet and the original read file to ensure that the contents were not corrupted.
Use can use any values within the IP and the TCP header fields. Explain why you chose those values. Make sure the TCP and the IP checksums are properly calculated.
Assume that the maximum IP packet size can be of 1400 octets (bytes).
Assignment due on October 1, 2008 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Segmentation of a file and forming ftp datagrams
Reference No:- TGS0136009

Expected delivery within 24 Hours