| Download
Jupyter notebook VT2016/LabExercises/LabExercise1/EX1_GiangNguyen_1_20160210.ipynb
Kernel: Python 2 (system-wide)
In [5]:
In [6]:
1.64485362695
1.64637881729
Laboratory Assignment 1
Exercise A
Question 1: How much time will the download require if all the seeders are used together, given that their individual speeds do not change?
In [3]:
1.7872340425531914
Question 2: How large was the distribution (in Mbytes)?
In [4]:
781.059265137
Exercise B
In [8]:
31.527
15.7635
In [13]:
[428, 423, 426, 404, 399, 403, 440, 439, 443, 354, 353, 357, 324, 328, 325, 328, 325, 328, 325, 325, 324, 326, 329, 325, 329, 325, 329, 337, 342, 337, 351, 349, 349]
[541, 525, 525, 440, 440, 441, 444, 445, 440, 451, 451, 455, 404, 399, 399, 436, 437, 437, 446, 445, 448, 378, 377, 376, 390, 390, 388, 405, 404, 407, 371, 372, 373]
Question 1: How much time, approximately, is required for a message to go from A to B?
In [16]:
31.527
15.7635
Question 2: Considering all values, what seems to be the typical RTT?
In [6]:
31.527
Question 3: Approximately, how much does the RTT vary on average?
In [10]:
19.354463852
Question 4: How does the distribution of RTT samples look like?
In [48]:
Question 5: How would you like to describe the shape of the distribution, and why do you think it has this shape?
In [6]:
Exercise C
Question 1: Calculate [c1,c2] for a confidence level of 90%?
In [24]:
(30.520280682916461, 32.533719317083538)
Question 2: Calculate [c1,c2] for a confidence level of 95%?
In [12]:
(30.327419945158617, 32.726580054841385)
Question 3: Why is the interval larger for 95% than for a 90% interval? Should not a 95% interval be a more precise measure of the interval containing the "real" value?
In [25]:
Confidence Intervals for confidence level of 90%: [c1,c2] = (30.520280682916461, 32.533719317083538)
Confidence Intervals for confidence level of 95%: [c3,c4] = (30.327419945158617, 32.726580054841385)
Question 4: Between what values can we expect the "real" transmission time to be? Choose a 95% level of confidence.
In [14]:
(351.85107458580217, 365.05801632328871)
Question 5: How many repetitions of the experiment are required to be sure that the average transmission time is within 3% of the average?
In [0]:
Question 5: Compare the achieved results to the unmodified TCP stack. What can you say about the difference?
In [20]:
Original TCP Stack
Mean = 358.454545455
Standard Deviation = 41.3990857088
Modified TCP Stack
Mean = 426.666666667
Standard Deviation = 43.0670137898
Question 6: Do one set of calculations according to the Means of Difference approach, and one set of calculation according to the Difference of Means approach, both using the same confidence level. Do they show the same results? Why/Why not?
In [19]:
List d = [113, 102, 99, 36, 41, 38, 4, 6, -3, 97, 98, 98, 80, 71, 74, 108, 112, 109, 121, 120, 124, 52, 48, 51, 61, 65, 59, 68, 62, 70, 20, 23, 24]
Average of d= 68.2121212121
Standard Deviation of d= 36.4564975925
Number of degrees of freedom = 33
Confidence Intervals [c1,c2] = (61.608650343377938, 74.815592080864491)
Difference of Average= 68.2121212121
Combined standard deviation = 10.3990850039
Number of degrees of freedom 63.9004102198
65.6624076375 70.7618347867
Exercise D
Question 1: Are there any statistically significant difference between the network providers i.e.: what can you say about the difference with 95% confidence?
In [134]:
[[129, 139, 142, 138, 133], [144, 132, 135, 145, 139], [142, 147, 144, 149, 138]]
Pre-built Function: F_onewayResult(statistic=3.0534550195573615, pvalue=0.084726918790441252)
SSA = 156.133333333
SSE = 306.8
STT = 462.933333333
F_calcuated = 3.05345501956
Question 2: What can you say with 90% confidence?
In [6]:
Question 3: Is it possible to provide any useful comments about the experimental design based on the information provided above?
In [6]:
In [0]: