CS356 Computer Networks (Spring 2007)

TA Office Hours
Mon: 10:30 am to 11:30 am
Thu: 2:00 pm to 3:00 pm (right after class)
ESB Room 229, Desk#3

Exam and Homework Feedback

Homework 1 Feedback

Correct solution

Things to watch out for

Grading Guideliens

Question 1:

Question 2:
Question 3:

Midterm 1 Feedback

Correct solution.

Grading Guidelines
Question 1:

  • Appropriate use of the given input n.
  • Keeping track of sends and receives in one or more integer variables. Accompanying boolean variables like ready or waiting are redundant, but acceptable.
  • Correctly referring to the "other" process, i.e. i+1 mod 2 or 1-i.
  • Specifying correct types and initial values for any additional variables.
  • Properly formed AP syntax.

    Question 2:

  • Send alternating bits, starting with zero.
  • No activity unless timeout or ack received.
  • New transmission on ack receipt vs. RE-transmission on timeout

    Common Errors
    Question 1:

  • Not using n or i, and hard-coding 5, 7 or p[0] and p[1].
  • When using i, unnecessarily replicating instructions and using i=0 and i=1 in the guard.
  • Attempting to access n.p[1-i] or assuming variables to be global.
  • Using #ch.p[i].p[1-i] instead of maintaining variables to keep track of the number of messages.

    Question 2:

  • Not using a "ready" or "waiting" boolean variable and relying only on timeout for transmisson.
  • In process q, using parameter instead of variable (technically this is not an "error" so it was not penalized).