Homework 3 - Chapters 3 and 4
Due: Monday April 27, 2009 at 5:00pm
NOTE: No late homework will be accepted beyond Tuesday April 28th
The solution will be posted Wednesday morning so you can study it before the
midterm on Thursday April 30th.
- If a packet from the network layer is broken into 20 frames and each frame
has a 15% chance of being corrupted in transit, how many frames on average
will be transmitted before the whole packet is received without error?
Answer this question for the following types of data link protocols:
- A data link protocol that does no frame retransmission or error
detection. So if a frame is corrupted in transit, the data link layer
will not detect it. The responsibility for error detection and recovery
is on the higher layers (ie the network or transport layer will
retransmit the whole packet).
- A data link protocol with error detection that will retransmit a frame
that is corrupted in transit using selective repeat.
- The message 0110 0111 1110 0000 0111 1110 1111 1001 is to be transmitted.
Show the bit sequence for the message if it is encoded using the following
framing methods:
- Flag bytes with byte stuffing. FLAG = 0111 1110, ESC = 1110 0000
- Starting and ending flag bits with bit stuffing, FLAG = 0111 1110
- The character 'A' is represented in 8-bit ASCII as the bit string
01000001. You are transmitting 'A' with an even-parity Hamming code. What
is the bit string that is transmitted? Show all work in computing each
check bit, not just the resulting message.
- Suppose that while your answer to Question 4 is in transit, bit 7 is
corrupted (it flips to the opposite value). Show how the receiver would
detect and correct this error.
- Compute the CRC checksum for 0110 0010 1111 1110 divided by the generator
polynomial 1001. Show all work (similar to Figure 3.8 in the book).
- What features of the physical line should be considered when choosing a
sending window size for a sliding window protocol? Remember that one
purpose of sliding window is to keep the line in use as much as possible.
- Describe how the delay and throughput would differ between pure ALOHA and
slotted ALOHA under the following conditions. Which would be higher? Explain
why.
- Low load (few stations transmitting)
- High load (many stations transmitting)
- Draw the Manchester and differential Manchester encodings for 01100011.
- Two half-duplex Ethernet stations are contending for the channel. What is
the mean number of contention slots for these two stations?
- You are designing a network that will use CSMA/CD for contention. The
physical media has the following characteristics: 1.5Mbps, signal speed is
2/3rds the speed of light and maximum cable length is 500m.
- How long would the contention slot have to be?
- What would be the minimum frame size (i.e. how long would a frame have
to be so it takes longer to transmit than the length of a contetion
slot)?