# Homework 3

## Due date and weights

This is a 20-point assignment due Thursday
17 February, 2011. You may turn your solution in at class
or submit via moodle.

## Problem 1

In problems 1 to 3 of Homework 2, you
drew the TCP and IP headers for a TCP packet traveling between
b3091262.crawl.yahoo.net
and
www.cs.unca.edu.

Now, write the Ethernet frame that arrives at
www.cs.unca.edu
in the last leg of this transit.

You will need to use the
arp and
netstat commands to determine the
relevent source and destination Ethernet addresses.

## Problem 2

Write a Python function
that takes an integer `n` as its argument and returns
3*`n`+1 if `n` is odd and
`n`/2 if `n` is even.