hw1 - write call returns with no error it does not mean...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 168 Computer Networks Jannotti Homework 1 Due: 20 February 2010, 4pm Problem 1 Section 2, problems 2, 4, 29, 39 Problem 2 Section 3, problems 3, 4, 15, 16 Problem 3 Consider an e-mail system, in which an e-mail client is used to send messages to the e-mail server. You are the head programmer for this project. You want to make sure that if the e-mail client tells the user that the e-mail is sent, the server has received the e-mail message. Unfortunately, after spending many years on socket programming, you know that the socket API itself does not provide this functionality as is. When you call a socket write on the e-mail message, even if a blocking
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: write call returns with no error, it does not mean that the server has received the message. Propose a solution at the user-level (without modifying the transport layer and below, only at the application layer) that ensures that the e-mail client does not provide an “e-mail sent” message before the server possesses the message, and each message is sent only once. Consider the fact that a con-nection may be dropped, causing a socket to close pre-maturely. Elaborate on your choice of UDP/TCP as the transport layer in your solution, and issues like re-transmission....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern