next up previous
Next: TCP implementation



Your final project will be done in pairs of students. The aim is to implement a reliable message delivery (TCP) over an unreliable service (UDP).

In order to test your project, you will use an SFTP (describe in your first homework) and run it using your TCP implementation. You will then compare the maximum throughput in three cases: (1) using your TCP implementation and your SFTP, (2) your SFTP with the regular TCP, and (3) standard FTP. (To do this you can send a very long file, and measure the time.)

Specifically, you will write a set of local routines, which match the usual TCP routines (just with the prefix local_ added). The routines are.

  1. local_socket
  2. local_bind
  3. local_connect
  4. local_listen
  5. local_accept
  6. local_send and local_recv
  7. local_close and local_shutdown

In you implementation you will use calls to UDP. The interface will be done by calling two routines local_sendto and local_recvfrom. In the testing phase of your algorithm you will need to add to those routine the ability to randomly delete messages, and also reorder and duplicate them.

Yishay Mansour
Sun Dec 14 16:00:47 "IST 1997