Docsity

Midterm 2 Solution for Data Communications | CS 274, Exams of Data Communication Systems and Computer Networks

Toggle sidebar
bg1
IPFW CS 274 Midterm 2 Solutions
Spring 2007
1. B, B, A, A, B
2. 1. Contention, transmission, and idle states.
2. Error detection only determines where an error occurred
Error correcting can determines what the data must have been
3. 10010100 and 11000110 distance is 3
10010100 and 11111011 distance is 6
10010100 and 11110000 distance is 3
11000110 and 11111011 distance is 5
11000110 and 11110000 distance is 4
11111011 and 11110000 distance is 3
Hamming distance is 3 ( the minimum among all)
4. Hidden station problem: a station is not able to detect a potential competitor
from the medium because the competitor is too far away.
In MACA, A hidden station will hear CTS even though not RTS so that it will
restrain from sending data.
5. Orthogonal frequency division multiplexing (OFDM): Transmissions are
present on multiple frequencies at the same time
Frequency hopping spread spectrum (FHSS): transmission from one
frequency to another one according to an agreed sequence.
3.
(a) 00000101 10101001 11011110 01111110 11100000 or
00000100 10101001 11011110 01111110 11100000
(b) 01111110 10101001 11011110 11100000 01111110 11100000
11100000 01111110
(c) 01111110 10101001 11011110 011111010 11100000 01111110
4.
L/ (L + 8000 x 2 x 20 x 10-3) = 0.6
L = 0.6L + 320 * 0.6
0.4 x = 192
L = 480 bits
Frame size = 480 bits = 60 bytes
5.
The transmission for each frame or piggybacked ack is
2000/ (1 x 106 )= 2 x 10-3 sec = 2 msec
Time line t = 0 msec: the start of transmission of 1st frame of three frames
t = 2 msec: the end of transmission of 1st frame
t = 302msec: the full arrival of 1st frame at the receiver
t = 304msec: the end of transmission of the ack for 1st frame
t = 604msec: the reception of ack for 1st frame
pf2

Partial preview of the text

Download Midterm 2 Solution for Data Communications | CS 274 and more Exams Data Communication Systems and Computer Networks in PDF only on Docsity!

IPFW CS 274 Midterm 2 Solutions

Spring 2007

1. B, B, A, A, B

1. Contention, transmission, and idle states.

2. Error detection only determines where an error occurred

Error correcting can determines what the data must have been

3. 10010100 and 11000110 distance is 3

10010100 and 11111011 distance is 6

10010100 and 11110000 distance is 3

11000110 and 11111011 distance is 5

11000110 and 11110000 distance is 4

11111011 and 11110000 distance is 3

Hamming distance is 3 ( the minimum among all)

4. Hidden station problem: a station is not able to detect a potential competitor

from the medium because the competitor is too far away.

In MACA, A hidden station will hear CTS even though not RTS so that it will

restrain from sending data.

5. Orthogonal frequency division multiplexing (OFDM): Transmissions are

present on multiple frequencies at the same time

Frequency hopping spread spectrum (FHSS): transmission from one

frequency to another one according to an agreed sequence.

(a) 00000101 10101001 11011110 01111110 11100000 or

(b) 01111110 10101001 11011110 11100000 01111110 11100000

(c) 01111110 10101001 11011110 011111 0 10 11100000 01111110

L/ (L + 8000 x 2 x 20 x 10-3) = 0.

L = 0.6L + 320 * 0.

0.4 x = 192

L = 480 bits

Frame size = 480 bits = 60 bytes

The transmission for each frame or piggybacked ack is

2000/ (1 x 10

6

)= 2 x 10

sec = 2 msec

Time line t = 0 msec: the start of transmission of 1st frame of three frames

t = 2 msec: the end of transmission of 1st frame

t = 302msec: the full arrival of 1st frame at the receiver

t = 304msec: the end of transmission of the ack for 1st frame

t = 604msec: the reception of ack for 1

st

frame

t = 604msec: the sender starts to send 3 more new data frames

Every 604 msec, three frames are sent if no frame not ack are lost or corrupted

The maximum achievable channel utilization is 3 x 2 / 604 = 0.99 % (b) Uneven parties are at check bits 1 and 2, so the error bit is detected at

 - (a) the binary value after encoding is 6. 
  • Position
  • Bit x x 1 x 1 1 1 x
  • CB
  • CB
  • CB
  • CB
  • CB
  • Position bit 1 + 2 = 3 correctly!
  • Bit
  • CB 1 X
  • CB 2 X
  • CB
  • CB
  • CB
  • slot 1: 2, 4, 6, 8, 10, 12, 14, 7. Total 15 slot.
  • slot 2: 2, 4, 6,
  • slot 3: 2,
  • slot 4:
  • slot 5:
  • slot 6: 6,
  • slot 7:
  • slot 8:
  • slot 9: 10, 12, 14,
  • slot 10: 10,
  • slot 11:
  • slot 12:
  • slot 13: 14,
  • slot 14:
  • slot 15: