1. Will you get all the programs done?
    1. Yes
    2. No
    3. No way
  2. (Yes/No) Can the first packet sent by a host ever have the Fragement bit set
  3. I want to send a packet via Ethernet using UDP.  The data for the packet is 'hi', just those two letters.  What's the first byte that the ethernet sends.
  4. I observe that I can send from here to Euclid a 40 byte packet and I need 0.5 milliseconds.  I can send a 1040 byte packet using 6.5 milliseconds.  What is the latency and bandwidth between me and euclid.  USE UNITS!!!







  5. I notice that as I add more and more computers to my ethernet, total traffic successfully received drops even though all the stations are trying to send.  Why?



  6. (Backpack / Modem)  You can send via a modem at 56K bits/second.  Gabrielle could walk the data in your backpack at 30 miles per day.  Gabrielle can carry 100 tapes, each holding 20 Gigabytes.  Los Angles is about 3,000 miles away.  Which has the higher bandwidth between here and LA, walking with the backpack or sending via modem?




  7. Why does each ethernet wait a random time after a collision to retransmit?  Why not instead pick some near-optimal time, and retransmit after that time?




  8. My Xena-tracking device transmits at 40 K bytes/second.  I need to capture every moment of Xena's every move.  How using UDP/TCP/IP can I reserve the 40 KB/second?



  9. Who decides the route of a packet normally?
    1. Sender
    2. Reciever
    3. Routers on the route
    4. Gabrielle

  10. What is the limit of X as X approaches 2 from the left.
    1. 2
    2. Two
    3. Too

  11. How do you find the ethernet address of a host given it's IP address.  Assume you are on the same wire as the host in question.

  12. Which of these functions puts a packet on the wire. Choose zero or one or more.
    1. fork()
    2. socket()
    3. accept()

  13. The function fnctl is sometimes used on file descriptors.  It's return type is int.  What does it return on error?


  14. Which handles the most bytes, the ethernet card or the part of the OS that sends TCP packets.

  15. TCP does not explicitly handle collisions.  TCP works fine over ethernet,  which can have collisions.   How can this be?





  16. Assuming no errors, what would the following program print?
  17. main() {
        int i = 10; 
        int pid = fork()
        if (pid == 0) {
            i = 1;
        }
        cout << i;
    }
  18. Edit the program above to check for an error from fork().