1. Given an IP address, how can you determine the MAC address?

2. Circle all the correct statements ...

1. EVERY computer on the internet has at least one IP address

2. NOT ONE computer on the internet has more than one IP address

3. EVERY SINGLE IP address has EXACTLY 4 bytes.

4. None of the above

3. Every computer in this lab has a randomly assigned IP address (that's true, and not part of the quiz). One of the computers has the IP address 198.110.193.103. What is the range of IP addresses that the other computers can have?

4. Suppose I send a 1200 byte IP packet, and in the middle the route to the destination has a network that can only carry 700 byte packets. What will happen?

1. The packet is dropped by the limiting network

2. An error is sent by the limiting network back to the sender

3. The packet is sent via a different route, with no network limited to less than 1200 bytes

4. The packet is split at one end of the limiting network, and recombined at the other end.

5. Failure to indent is a capital offense.

6. None of the above

5. (IP/TCP) Is the SYN bit in the TCP header or the IP header?

6. (Yes/No) After a computer sends a packet with the FIN bit true, may it send more packets.

7. Every packet that starts a TCP session has a SYN bit of (true/false) and an ACK bit of (true/false).

8. I have every bit of data received correctly up to 52,000. Suppose I receive 1000 byte TCP packets with sequence numbers of 50,000 and 52,000 and 53,000. What should I put in the ACK number of my replies?

9. I receive a packet with a time-to-live field of zero. What should I do?

1. Ignore the packet

2. Any other action

11. I notice that I can send a 1100 byte packet from euclid to www.xena.com in 50 ms. I can send a 100 byte packet in 40 ms. What are the bandwidth and latency between here and www.xena.com. You get one point for having the right units, and one point for having the right number.

Bandwidth: ________________________________________

Latency: ___________________________________________

Indenting: ___________________________________________

12. Using the sliding window protocol, suppose that the sender sends packets 1,2,3 and 4. The receiver receives (in this order) 4,2,1,3. What four acks should he send?

13. Your file sending client uses (circle all that apply)

1. Aloha

2. IP

3. TCP

4. HTTP

5. UDP

6. IAlwaysIndentRight

14. On a normal network with normal attributes, if there are no losses, which is faster, sliding window or ping pong?

15. (Yes/No) Ethernet retransmits if there is a collision. When I run TCP over ethernet, does the TCP software still set timers and to detect lost packets?

16. If you just want to send one byte of data, and don't need a reply, why would you use TCP?

17. How does a TCP sender decide it's facing a congested network?

18. What does a TCP sender do when it thinks it's facing congestion?


19. What will the following code do?

while(fork() == 0) {

cout << "I will always indent correctly\n";

}

exit(0);

20. If I fail to indent my code properly

1. The teacher will punish me.

1. Nothing bad will happen.

1. Real programmers don't; why should I?