Assignment 1 2
Assignment 1 2
Assignment 1 2
TECHNOLOGY
Question 4
Checksum does not need to take into account endianness because
checksum is the same no matter what order the bytes they are.Checksum
does adding which are commutative.
Question 5
Solution:
(a) In the case of one bit error,it can be detected and corrected
because two affected parity bits can determine and define
where the error is.
(b) Two errors can definetly determined because they affect two
bits of the column parity.The receiver can knows that the
message is somewhat corrupted and discard the whole
message.
(c) Three bits are detected because they affect two parity bits ,one
of the column parity and the other of the row parity.The
receiver knows that the message corrupted and discards the
whole message.Although it can not show where the errors were
located.
(d) For this case the error can not be detected because non of the
parity bits are affected.
Question 6
Data provided;
Data word=101001111
Divisor=10111
Required;
To show generation of CRC at the sender using binary division.
Solution;
From data provide,
(n-k)+1=5
(n-k)=4
Now,
FCS=2(n-k)D
FCS=24(101001111)=1010011110000.
Then,
100110111
10111 ⟌1010011110000
10111
00111
00000
01111
00000
11111
10111
10001
10111
01100
00000
11000
10111
11110
10111
10010
10111
0101
Therefore,
Solution;
(b) Yes,because the length of burst error is less than the length of
the generator polynomial CRC-32.
(c) From,
Probability=1-(0.5)r-1
Probability=1-(0.5)32-1
Probability=0.999999999
Therefore;
Probability=0.999999999
(d) From,
Probability=1-(0.5)r
Probability=1-(0.5)32
Probability=0.999999999
Therefore;
Probability=0.999999999
Question 8
Solution;
9×1=9
7×3=21
8×1= 8
0×3=0
0×1=0
7×3=21
2×1=2
9×3=27
6×1=6
7×3=21
7×1=7
5×3=15
Sum=137
Modulo 10 division;
13
10 ⟌137
100
37
30
7
Now,
Check digit=10-7
Check digit=3
Hence;
Check digit=3
Question 9
(a)
Data provided;
P(x)=x4+x+1
Data bits=10010011011
Required;
To encode the Data bits.
Solution;
Generator bits=10011
n-k=4
FCS=100100110110000
Now,
100110111
10011 ⟌100100110110000
10011
00010
00000
00101
00000
01011
10011
10110
10011
01011
00000
10111
10011
01000
10011
10000
10011
00110
00000
01100
00000
1100
Now,
(b) Received,
0001110110111100
00001110110111100
No,error can not be detected because the error pattern results to the
formation of odd number of error bits,and generator polynomial can
not be write in the form of (x+1) so as to detect odd number of
Errors.
Question 10
Solution;
Sum1=00000000+(A7A2)16
Sum2=(A7A2)16+(CABF)16=17261
Sum3=(903A)16+(17261)16=2029B
Sum4=(A123)16+(2029B)16=0002A3BE
Sum= Sum4=0002A3BE
Left sum=0002
Right sum=A3BE
Sum=0002+ A3BE
Sum=0000A3C0
Complement sum
Coplement(0000A3C0)=FFFF5C3F
Checksum= FFFF5C3F
Tuncate(Checksum)
Truncate(FFFF5C3F)=5C3F
Hence;
Checksum=(5C3F)16