
CS 228 – Final Exam of the Rhino
1. (four points) Which TCP ports can one connect to on
turing.nmu.edu? Show me a program you wrote that
answers this.
2. Is your name on the test (choose all that apply)?
a) Yes, I want to pass the class.
b) No, I don't want to pass the class.
c) Yes, but I don't want to pass the class.
d) No, but I really really want to pass the class.
e) Your kid helped you write both 'c and 'd'.
3. (Yes/No) Suppose I call exit(0). Does that automatically close for that process any file
descriptors it might have open?
4. (Yes/No) Does standard Ethernet require synchronized clocks on the computers using
Ethernet? (i.e. clocks that all know the current time of day to a reasonable degree of
accuracy)?
5. How many computers can have a class 'C' IP number? I want a number like
123,456,789.
6. Suppose a TCP sender sends packets of data. It sends a packet with data bytes 0-999,
another with packet 1000-1999, and a third with 2000-2999. The first packet's
corresponding ack is lost. All other acks are received. Must the bytes 0-999 be resent?
a) Yes.
b) No.
c) Maybe
7. Suppose a Rhino sends a 1000 bytes of TCP data, all in one Ethernet packet. Counting
all headers except the Ethernet preamble, how long is this Ethernet packet?
8. Hawaiian rhinos still use Aloha. They need to maximize bandwidth; that's all they care
about. They are arguing over which aloha is most efficient. So ... which version of
Aloha is most efficient.
9. (True/False) In the ping-pong protocol, there is at most two outstanding data packets on
the wire at one time, not counting acks.
10. Which of these system calls can place bytes on the wire? (choose all the apply)