Network Exercise
Network Exercise
Show the NRZ, Manchester, and NRZI encodings for the bit pattern shown in
Figure 2.36. Assume that the NRZI signal starts out low.
2. Show the 4B/5B encoding, and the resulting NRZI signal, for the following bit
sequence:
a) 1110 0101 0000 0011
Assuming a framing protocol that uses bit stuffing, show the bit sequence
transmitted over the link when the frame contains the following bit
sequence:
a) 110101111101011111101011111110
1101 0111 1100 1011 1110 1010 1111 1011 0
b) Mark the stuffed bits.
3. Suppose you want to send some data using the BISYNC framing protocol and
the last 2 bytes of your data are DLE and ETX. What sequence of bytes would
be transmitted immediately prior to the CRC?
..., DLE, DLE, DLE, ETX, ETX
4. Assume that a SONET receiver resynchronizes its clock whenever a 1 bit
appears; otherwise, the receiver samples the signal in the middle of what it
believes is the bits time slot.
a) What relative accuracy of the senders and receivers clocks is required in
order to receive correctly 48 zero bytes (one ATM cells worth) in a row?
After 488=384 bits we can be off by no more than 1/2 bit, which is
about 1 part in 800.
b) Consider a forwarding station A on a SONET STS-1 line, receiving frames
from the downstream end B and retransmitting them upstream. What
relative accuracy of As and Bs clocks is required to keep A from
accumulating more than one extra frame per minute?
One frame is 810 bytes; at STS-1 51.8Mbps speed we are sending
51.8106/(8810) = about 8000 frames/sec, or about 480,000
frames/minute. Thus, if station Bs clock ran faster than station As by
one part in 480,000, A would accumulate about one extra frame per
minute.
Give an example of a 4-bit error that would not be detected by twodimensional parity, as illustrated in Figure 2.14. What is the general set of
circumstances under which 4-bit errors will be undetected?
If we flip the bits corresponding to the corners of a rectangle in the 2-D
layout of the data, then all parity bits will still be correct. Furthermore, if
four bits change and no error is detected, then the bad bits must form a
rectangle: in order for the error to go undetected, each row and column
must have no errors or exactly two errors.