You are on page 1of 28

Assignment on Simulation of LAN traffic

PMIT-6101: Advanced Networking and Internet Technology

Prepared by: Md. Mahbubul Haque


Roll: 130115
1st Batch, Roll: 130115, PMIT
Institute Of Information Technology (IIT),
Jahangirnagar University, Savar, Dhaka
Bangladesh

Written for:

Md. Imdadul Islam


Professor, Department of Computer Science and Engineering
Jahangirnagar University , Savar, Dhaka
Bangladesh

Date: March 7, 2013

Let the packet arrival rate of a LAN follows the probability density function (pdf) of negative exponential like, f(t)
= e-t; where is call arrival rate and t is inter-arrival time.
Integrating the pdf over [0, t] gives the cdf, F(t) = rand(); a random number in [0, 1]. Solving the cdf,
t = -(1/)*ln(1-F(t))

(1) Let us generate random numbers using Microsoft Excel and find interarrival time using (1). Now the
arrival instant and terminating instant of the packet can be found from the interarrival time taking the fixed
length of the packet, Tp = 3 ms. Entire result is shown in table-1, taking =1/12 packets/ms.
Number
Random
NF(t)

Interarriv
al time (t)

0.649528
221
0.809728
627
0.618029
316
0.625090
032
0.460402
282
0.656389
315
0.108379
962
0.569277
488
0.530710
834
0.450787
411
0.569538
803
0.684936
873
0.948635
8
0.417576
69
0.515063
321
0.280268
282
0.193942
805
0.490545
695
0.839091

12.58170
11
19.91164
738
11.54893
7
11.77283
242
7.403176
597
12.81895
191
1.376582
44
10.10749
464
9.078433
695
7.191236
204
10.11477
713
13.85978
709
35.62576
608
6.486693
099
8.684843
473
3.946521
011
2.587206
933
8.092981
391
21.92304

Arrival
instant
(ta)
12.58170
11
32.49334
848
44.04228
548
55.81511
79
63.21829
45
76.03724
641
77.41382
885
87.52132
349
96.59975
719
103.7909
934
113.9057
705
127.7655
576
163.3913
237
169.8780
168
178.5628
603
182.5093
813
185.0965
882
193.1895
696
215.1126

Terminati
on
instant
(tt)
15.58170
11
35.49334
848
47.04228
548
58.81511
79
66.21829
45
79.03724
641
80.41382
885
90.52132
349
99.59975
719
106.7909
934
116.9057
705
130.7655
576
166.3913
237
172.8780
168
181.5628
603
185.5093
813
188.0965
882
196.1895
696
218.1126

683
0.834112
183
0.011556
885
0.369385
241
0.472313
912
0.687489
668
0.257549
791
0.256189
527
0.746941
007
0.655744
53
0.996582
908
0.697739
974
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

643
21.55732
224
0.139490
217
5.532721
522
7.671044
42
13.95741
298
3.573593
623
3.551628
202
16.48959
174
12.79645
503
68.14758
289
14.35761
144
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

16
236.6699
383
236.8094
285
242.3421
5
250.0131
944
263.9706
074
267.5442
01
271.0958
292
287.5854
21
300.3818
76
368.5294
589
382.8870
703
392.8853
064
402.8835
425
412.8817
786
422.8800
147
432.8782
508
442.8764
868
452.8747
229
462.8729
59
472.8711
951

16
239.6699
383
239.8094
285
245.3421
5
253.0131
944
266.9706
074
270.5442
01
274.0958
292
290.5854
21
303.3818
76
371.5294
589
385.8870
703
395.8853
064
405.8835
425
415.8817
786
425.8800
147
435.8782
508
445.8764
868
455.8747
229
465.8729
59
475.8711
951

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

482.8694
312
492.8676
673
502.8659
034
512.8641
394
522.8623
755
532.8606
116
542.8588
477
552.8570
838
562.8553
199
572.8535
559
582.8517
92
592.8500
281
602.8482
642
612.8465
003
622.8447
364
632.8429
725
642.8412
085
652.8394
446
662.8376
807
672.8359
168
682.8341
529
692.8323
89
702.8306
251
712.8288
611
722.8270
972
732.8253
333
742.8235
694

485.8694
312
495.8676
673
505.8659
034
515.8641
394
525.8623
755
535.8606
116
545.8588
477
555.8570
838
565.8553
199
575.8535
559
585.8517
92
595.8500
281
605.8482
642
615.8465
003
625.8447
364
635.8429
725
645.8412
085
655.8394
446
665.8376
807
675.8359
168
685.8341
529
695.8323
89
705.8306
251
715.8288
611
725.8270
972
735.8253
333
745.8235
694

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

752.8218
055
762.8200
416
772.8182
776
782.8165
137
792.8147
498
802.8129
859
812.8112
22
822.8094
581
832.8076
942
842.8059
302
852.8041
663
862.8024
024
872.8006
385
882.7988
746
892.7971
107
902.7953
468
912.7935
828
922.7918
189
932.7900
55
942.7882
911
952.7865
272
962.7847
633
972.7829
993
982.7812
354
992.7794
715
1002.777
708
1012.775
944

755.8218
055
765.8200
416
775.8182
776
785.8165
137
795.8147
498
805.8129
859
815.8112
22
825.8094
581
835.8076
942
845.8059
302
855.8041
663
865.8024
024
875.8006
385
885.7988
746
895.7971
107
905.7953
468
915.7935
828
925.7918
189
935.7900
55
945.7882
911
955.7865
272
965.7847
633
975.7829
993
985.7812
354
995.7794
715
1005.777
708
1015.775
944

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

1022.774
18
1032.772
416
1042.770
652
1052.768
888
1062.767
124
1072.765
36
1082.763
596
1092.761
832
1102.760
068
1112.758
305
1122.756
541
1132.754
777
1142.753
013
1152.751
249
1162.749
485
1172.747
721
1182.745
957
1192.744
193
1202.742
429
1212.740
665
1222.738
901
1232.737
138
1242.735
374
1252.733
61
1262.731
846
1272.730
082
1282.728
318

1025.774
18
1035.772
416
1045.770
652
1055.768
888
1065.767
124
1075.765
36
1085.763
596
1095.761
832
1105.760
068
1115.758
305
1125.756
541
1135.754
777
1145.753
013
1155.751
249
1165.749
485
1175.747
721
1185.745
957
1195.744
193
1205.742
429
1215.740
665
1225.738
901
1235.737
138
1245.735
374
1255.733
61
1265.731
846
1275.730
082
1285.728
318

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

1292.726
554
1302.724
79
1312.723
026
1322.721
262
1332.719
498
1342.717
734
1352.715
971
1362.714
207
1372.712
443
1382.710
679
1392.708
915
1402.707
151
1412.705
387
1422.703
623
1432.701
859
1442.700
095
1452.698
331
1462.696
568
1472.694
804
1482.693
04
1492.691
276
1502.689
512
1512.687
748
1522.685
984
1532.684
22
1542.682
456
1552.680
692

1295.726
554
1305.724
79
1315.723
026
1325.721
262
1335.719
498
1345.717
734
1355.715
971
1365.714
207
1375.712
443
1385.710
679
1395.708
915
1405.707
151
1415.705
387
1425.703
623
1435.701
859
1445.700
095
1455.698
331
1465.696
568
1475.694
804
1485.693
04
1495.691
276
1505.689
512
1515.687
748
1525.685
984
1535.684
22
1545.682
456
1555.680
692

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

1562.678
928
1572.677
164
1582.675
401
1592.673
637
1602.671
873
1612.670
109
1622.668
345
1632.666
581
1642.664
817
1652.663
053
1662.661
289
1672.659
525
1682.657
761
1692.655
997
1702.654
234
1712.652
47
1722.650
706
1732.648
942
1742.647
178
1752.645
414
1762.643
65
1772.641
886
1782.640
122
1792.638
358
1802.636
594
1812.634
83
1822.633
067

1565.678
928
1575.677
164
1585.675
401
1595.673
637
1605.671
873
1615.670
109
1625.668
345
1635.666
581
1645.664
817
1655.663
053
1665.661
289
1675.659
525
1685.657
761
1695.655
997
1705.654
234
1715.652
47
1725.650
706
1735.648
942
1745.647
178
1755.645
414
1765.643
65
1775.641
886
1785.640
122
1795.638
358
1805.636
594
1815.634
83
1825.633
067

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

1832.631
303
1842.629
539
1852.627
775
1862.626
011
1872.624
247
1882.622
483
1892.620
719
1902.618
955
1912.617
191
1922.615
427
1932.613
664
1942.611
9
1952.610
136
1962.608
372
1972.606
608
1982.604
844
1992.603
08
2002.601
316
2012.599
552
2022.597
788
2032.596
024
2042.594
26
2052.592
497
2062.590
733
2072.588
969
2082.587
205
2092.585
441

1835.631
303
1845.629
539
1855.627
775
1865.626
011
1875.624
247
1885.622
483
1895.620
719
1905.618
955
1915.617
191
1925.615
427
1935.613
664
1945.611
9
1955.610
136
1965.608
372
1975.606
608
1985.604
844
1995.603
08
2005.601
316
2015.599
552
2025.597
788
2035.596
024
2045.594
26
2055.592
497
2065.590
733
2075.588
969
2085.587
205
2095.585
441

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

2102.583
677
2112.581
913
2122.580
149
2132.578
385
2142.576
621
2152.574
857
2162.573
093
2172.571
33
2182.569
566
2192.567
802
2202.566
038
2212.564
274
2222.562
51
2232.560
746
2242.558
982
2252.557
218
2262.555
454
2272.553
69
2282.551
926
2292.550
163
2302.548
399
2312.546
635
2322.544
871
2332.543
107
2342.541
343
2352.539
579
2362.537
815

2105.583
677
2115.581
913
2125.580
149
2135.578
385
2145.576
621
2155.574
857
2165.573
093
2175.571
33
2185.569
566
2195.567
802
2205.566
038
2215.564
274
2225.562
51
2235.560
746
2245.558
982
2255.557
218
2265.555
454
2275.553
69
2285.551
926
2295.550
163
2305.548
399
2315.546
635
2325.544
871
2335.543
107
2345.541
343
2355.539
579
2365.537
815

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

2372.536
051
2382.534
287
2392.532
523
2402.530
76
2412.528
996
2422.527
232
2432.525
468
2442.523
704
2452.521
94
2462.520
176
2472.518
412
2482.516
648
2492.514
884
2502.513
12
2512.511
356
2522.509
593
2532.507
829
2542.506
065
2552.504
301
2562.502
537
2572.500
773
2582.499
009
2592.497
245
2602.495
481
2612.493
717
2622.491
953
2632.490
189

2375.536
051
2385.534
287
2395.532
523
2405.530
76
2415.528
996
2425.527
232
2435.525
468
2445.523
704
2455.521
94
2465.520
176
2475.518
412
2485.516
648
2495.514
884
2505.513
12
2515.511
356
2525.509
593
2535.507
829
2545.506
065
2555.504
301
2565.502
537
2575.500
773
2585.499
009
2595.497
245
2605.495
481
2615.493
717
2625.491
953
2635.490
189

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

2642.488
426
2652.486
662
2662.484
898
2672.483
134
2682.481
37
2692.479
606
2702.477
842
2712.476
078
2722.474
314
2732.472
55
2742.470
786
2752.469
022
2762.467
259
2772.465
495
2782.463
731
2792.461
967
2802.460
203
2812.458
439
2822.456
675
2832.454
911
2842.453
147
2852.451
383
2862.449
619
2872.447
856
2882.446
092
2892.444
328
2902.442
564

2645.488
426
2655.486
662
2665.484
898
2675.483
134
2685.481
37
2695.479
606
2705.477
842
2715.476
078
2725.474
314
2735.472
55
2745.470
786
2755.469
022
2765.467
259
2775.465
495
2785.463
731
2795.461
967
2805.460
203
2815.458
439
2825.456
675
2835.454
911
2845.453
147
2855.451
383
2865.449
619
2875.447
856
2885.446
092
2895.444
328
2905.442
564

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

2912.440
8
2922.439
036
2932.437
272
2942.435
508
2952.433
744
2962.431
98
2972.430
216
2982.428
452
2992.426
689
3002.424
925
3012.423
161
3022.421
397
3032.419
633
3042.417
869
3052.416
105
3062.414
341
3072.412
577
3082.410
813
3092.409
049
3102.407
285
3112.405
522
3122.403
758
3132.401
994
3142.400
23
3152.398
466
3162.396
702
3172.394
938

2915.440
8
2925.439
036
2935.437
272
2945.435
508
2955.433
744
2965.431
98
2975.430
216
2985.428
452
2995.426
689
3005.424
925
3015.423
161
3025.421
397
3035.419
633
3045.417
869
3055.416
105
3065.414
341
3075.412
577
3085.410
813
3095.409
049
3105.407
285
3115.405
522
3125.403
758
3135.401
994
3145.400
23
3155.398
466
3165.396
702
3175.394
938

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

3182.393
174
3192.391
41
3202.389
646
3212.387
882
3222.386
118
3232.384
355
3242.382
591
3252.380
827
3262.379
063
3272.377
299
3282.375
535
3292.373
771
3302.372
007
3312.370
243
3322.368
479
3332.366
715
3342.364
951
3352.363
188
3362.361
424
3372.359
66
3382.357
896
3392.356
132
3402.354
368
3412.352
604
3422.350
84
3432.349
076
3442.347
312

3185.393
174
3195.391
41
3205.389
646
3215.387
882
3225.386
118
3235.384
355
3245.382
591
3255.380
827
3265.379
063
3275.377
299
3285.375
535
3295.373
771
3305.372
007
3315.370
243
3325.368
479
3335.366
715
3345.364
951
3355.363
188
3365.361
424
3375.359
66
3385.357
896
3395.356
132
3405.354
368
3415.352
604
3425.350
84
3435.349
076
3445.347
312

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

3452.345
548
3462.343
785
3472.342
021
3482.340
257
3492.338
493
3502.336
729
3512.334
965
3522.333
201
3532.331
437
3542.329
673
3552.327
909
3562.326
145
3572.324
381
3582.322
618
3592.320
854
3602.319
09
3612.317
326
3622.315
562
3632.313
798
3642.312
034
3652.310
27
3662.308
506
3672.306
742
3682.304
978
3692.303
214
3702.301
451
3712.299
687

3455.345
548
3465.343
785
3475.342
021
3485.340
257
3495.338
493
3505.336
729
3515.334
965
3525.333
201
3535.331
437
3545.329
673
3555.327
909
3565.326
145
3575.324
381
3585.322
618
3595.320
854
3605.319
09
3615.317
326
3625.315
562
3635.313
798
3645.312
034
3655.310
27
3665.308
506
3675.306
742
3685.304
978
3695.303
214
3705.301
451
3715.299
687

0.565337
904

9.998236
085

3722.297
923

3725.297
923

0.565337
904

9.998236
085

3732.296
159

3735.296
159

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

3742.294
395
3752.292
631
3762.290
867
3772.289
103
3782.287
339
3792.285
575
3802.283
811
3812.282
047
3822.280
284
3832.278
52
3842.276
756
3852.274
992
3862.273
228
3872.271
464
3882.269
7
3892.267
936
3902.266
172
3912.264
408
3922.262
644
3932.260
881
3942.259
117
3952.257
353
3962.255
589
3972.253
825
3982.252
061
3992.250
297
4002.248
533

3745.294
395
3755.292
631
3765.290
867
3775.289
103
3785.287
339
3795.285
575
3805.283
811
3815.282
047
3825.280
284
3835.278
52
3845.276
756
3855.274
992
3865.273
228
3875.271
464
3885.269
7
3895.267
936
3905.266
172
3915.264
408
3925.262
644
3935.260
881
3945.259
117
3955.257
353
3965.255
589
3975.253
825
3985.252
061
3995.250
297
4005.248
533

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

4012.246
769
4022.245
005
4032.243
241
4042.241
477
4052.239
714
4062.237
95
4072.236
186
4082.234
422
4092.232
658
4102.230
894
4112.229
13
4122.227
366
4132.225
602
4142.223
838
4152.222
074
4162.220
31
4172.218
547
4182.216
783
4192.215
019
4202.213
255
4212.211
491
4222.209
727
4232.207
963
4242.206
199
4252.204
435
4262.202
671
4272.200
907

4015.246
769
4025.245
005
4035.243
241
4045.241
477
4055.239
714
4065.237
95
4075.236
186
4085.234
422
4095.232
658
4105.230
894
4115.229
13
4125.227
366
4135.225
602
4145.223
838
4155.222
074
4165.220
31
4175.218
547
4185.216
783
4195.215
019
4205.213
255
4215.211
491
4225.209
727
4235.207
963
4245.206
199
4255.204
435
4265.202
671
4275.200
907

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

4282.199
143
4292.197
38
4302.195
616
4312.193
852
4322.192
088
4332.190
324
4342.188
56
4352.186
796
4362.185
032
4372.183
268
4382.181
504
4392.179
74
4402.177
977
4412.176
213
4422.174
449
4432.172
685
4442.170
921
4452.169
157
4462.167
393
4472.165
629
4482.163
865
4492.162
101
4502.160
337
4512.158
573
4522.156
81
4532.155
046
4542.153
282

4285.199
143
4295.197
38
4305.195
616
4315.193
852
4325.192
088
4335.190
324
4345.188
56
4355.186
796
4365.185
032
4375.183
268
4385.181
504
4395.179
74
4405.177
977
4415.176
213
4425.174
449
4435.172
685
4445.170
921
4455.169
157
4465.167
393
4475.165
629
4485.163
865
4495.162
101
4505.160
337
4515.158
573
4525.156
81
4535.155
046
4545.153
282

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

4552.151
518
4562.149
754
4572.147
99
4582.146
226
4592.144
462
4602.142
698
4612.140
934
4622.139
17
4632.137
406
4642.135
643
4652.133
879
4662.132
115
4672.130
351
4682.128
587
4692.126
823
4702.125
059
4712.123
295
4722.121
531
4732.119
767
4742.118
003
4752.116
239
4762.114
476
4772.112
712
4782.110
948
4792.109
184
4802.107
42
4812.105
656

4555.151
518
4565.149
754
4575.147
99
4585.146
226
4595.144
462
4605.142
698
4615.140
934
4625.139
17
4635.137
406
4645.135
643
4655.133
879
4665.132
115
4675.130
351
4685.128
587
4695.126
823
4705.125
059
4715.123
295
4725.121
531
4735.119
767
4745.118
003
4755.116
239
4765.114
476
4775.112
712
4785.110
948
4795.109
184
4805.107
42
4815.105
656

0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904
0.565337
904

9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085
9.998236
085

4822.103
892
4832.102
128
4842.100
364
4852.098
6
4862.096
836
4872.095
073
4882.093
309
4892.091
545
4902.089
781
4912.088
017
4922.086
253
4932.084
489
4942.082
725
4952.080
961
4962.079
197
4972.077
433
4982.075
669
4992.073
906
5002.072
142
5012.070
378
5022.068
614
5032.066
85
5042.065
086
5052.063
322
5062.061
558
5072.059
794
5082.058
03

4825.103
892
4835.102
128
4845.100
364
4855.098
6
4865.096
836
4875.095
073
4885.093
309
4895.091
545
4905.089
781
4915.088
017
4925.086
253
4935.084
489
4945.082
725
4955.080
961
4965.079
197
4975.077
433
4985.075
669
4995.073
906
5005.072
142
5015.070
378
5025.068
614
5035.066
85
5045.065
086
5055.063
322
5065.061
558
5075.059
794
5085.058
03

0.565337

9.998236

5092.056

5095.056

904

085

ta= xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'C:C');
tt= xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'D:D');
n=xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'F:F');
Note : Using xlsread (filename,sheet,cell);this code we can read data
from xlsx sheet within fixed column; That reduce the time to plot data in
matlab.

266

266

for i=1:500,
T=[ta(i),tt(i)];
N=[n(i), n(i)];
plot(T,N)
hold on
end
xlabel('Time in ms')
ylabel('Packets')
figure
for i=1:500,
stem(ta(i),1,'r^')
hold on
stem(tt(i),1,'bv')
hold on
end
xlabel('Time in ms')

(2) Let us generate random numbers using Microsoft Excel and find interarrival time using (1). Now
the arrival instant and terminating instant of the packet can be found from the interarrival time
taking the fixed length of the packet, Tp = 3 ms. Entire result is shown in table-1, taking =1/2
packets/ms.

Number Random
NF(t)

Interarrival time (t)

Arrival instant

Termination instant

0.649528221
0.809728627
0.618029316
0.625090032
0.460402282
0.656389315
0.108379962
0.569277488
0.530710834
0.450787411
0.569538803
0.684936873
0.9486358
0.41757669
0.515063321

2.096950184
3.318607896
1.924822833
1.962138737
1.233862766
2.136491986
0.229430407
1.684582441
1.513072282
1.198539367
1.685796188
2.309964515
5.93762768
1.081115517
1.447473912

(ta)
2.096950184
5.41555808
7.340380913
9.30251965
10.53638242
12.6728744
12.90230481
14.58688725
16.09995953
17.2984989
18.98429509
21.2942596
27.23188728
28.3130028
29.76047671

(tt)
5.096950184
8.41555808
10.34038091
12.30251965
13.53638242
15.6728744
15.90230481
17.58688725
19.09995953
20.2984989
21.98429509
24.2942596
30.23188728
31.3130028
32.76047671

0.280268282
0.193942805
0.490545695
0.839091683
0.834112183
0.011556885
0.369385241
0.472313912
0.687489668
0.257549791
0.256189527
0.746941007
0.65574453
0.996582908
0.697739974
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

0.657753502
0.431201156
1.348830232
3.653841071
3.59288704
0.02324837
0.922120254
1.278507403
2.326235497
0.595598937
0.591938034
2.748265291
2.132742505
11.35793048
2.392935239
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

30.41823021
30.84943137
32.1982616
35.85210267
39.44498971
39.46823808
40.39035833
41.66886574
43.99510123
44.59070017
45.18263821
47.9309035
50.063646
61.42157648
63.81451172
65.4808844
67.14725708
68.81362977
70.48000245
72.14637513
73.81274781
75.47912049
77.14549317
78.81186585
80.47823853
82.14461121
83.81098389
85.47735657
87.14372925
88.81010194
90.47647462
92.1428473
93.80921998
95.47559266
97.14196534
98.80833802
100.4747107
102.1410834
103.8074561
105.4738287
107.1402014
108.8065741
110.4729468

33.41823021
33.84943137
35.1982616
38.85210267
42.44498971
42.46823808
43.39035833
44.66886574
46.99510123
47.59070017
48.18263821
50.9309035
53.063646
64.42157648
66.81451172
68.4808844
70.14725708
71.81362977
73.48000245
75.14637513
76.81274781
78.47912049
80.14549317
81.81186585
83.47823853
85.14461121
86.81098389
88.47735657
90.14372925
91.81010194
93.47647462
95.1428473
96.80921998
98.47559266
100.1419653
101.808338
103.4747107
105.1410834
106.8074561
108.4738287
110.1402014
111.8065741
113.4729468

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

112.1393195
113.8056921
115.4720648
117.1384375
118.8048102
120.4711829
122.1375556
123.8039282
125.4703009
127.1366736
128.8030463
130.469419
132.1357916
133.8021643
135.468537
137.1349097
138.8012824
140.467655
142.1340277
143.8004004
145.4667731
147.1331458
148.7995184
150.4658911
152.1322638
153.7986365
155.4650092
157.1313818
158.7977545
160.4641272
162.1304999
163.7968726
165.4632453
167.1296179
168.7959906
170.4623633
172.128736
173.7951087
175.4614813
177.127854
178.7942267
180.4605994
182.1269721

115.1393195
116.8056921
118.4720648
120.1384375
121.8048102
123.4711829
125.1375556
126.8039282
128.4703009
130.1366736
131.8030463
133.469419
135.1357916
136.8021643
138.468537
140.1349097
141.8012824
143.467655
145.1340277
146.8004004
148.4667731
150.1331458
151.7995184
153.4658911
155.1322638
156.7986365
158.4650092
160.1313818
161.7977545
163.4641272
165.1304999
166.7968726
168.4632453
170.1296179
171.7959906
173.4623633
175.128736
176.7951087
178.4614813
180.127854
181.7942267
183.4605994
185.1269721

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

183.7933447
185.4597174
187.1260901
188.7924628
190.4588355
192.1252081
193.7915808
195.4579535
197.1243262
198.7906989
200.4570716
202.1234442
203.7898169
205.4561896
207.1225623
208.788935
210.4553076
212.1216803
213.788053
215.4544257
217.1207984
218.787171
220.4535437
222.1199164
223.7862891
225.4526618
227.1190344
228.7854071
230.4517798
232.1181525
233.7845252
235.4508978
237.1172705
238.7836432
240.4500159
242.1163886
243.7827613
245.4491339
247.1155066
248.7818793
250.448252
252.1146247
253.7809973

186.7933447
188.4597174
190.1260901
191.7924628
193.4588355
195.1252081
196.7915808
198.4579535
200.1243262
201.7906989
203.4570716
205.1234442
206.7898169
208.4561896
210.1225623
211.788935
213.4553076
215.1216803
216.788053
218.4544257
220.1207984
221.787171
223.4535437
225.1199164
226.7862891
228.4526618
230.1190344
231.7854071
233.4517798
235.1181525
236.7845252
238.4508978
240.1172705
241.7836432
243.4500159
245.1163886
246.7827613
248.4491339
250.1155066
251.7818793
253.448252
255.1146247
256.7809973

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

255.44737
257.1137427
258.7801154
260.4464881
262.1128607
263.7792334
265.4456061
267.1119788
268.7783515
270.4447241
272.1110968
273.7774695
275.4438422
277.1102149
278.7765876
280.4429602
282.1093329
283.7757056
285.4420783
287.108451
288.7748236
290.4411963
292.107569
293.7739417
295.4403144
297.106687
298.7730597
300.4394324
302.1058051
303.7721778
305.4385504
307.1049231
308.7712958
310.4376685
312.1040412
313.7704138
315.4367865
317.1031592
318.7695319
320.4359046
322.1022773
323.7686499
325.4350226

258.44737
260.1137427
261.7801154
263.4464881
265.1128607
266.7792334
268.4456061
270.1119788
271.7783515
273.4447241
275.1110968
276.7774695
278.4438422
280.1102149
281.7765876
283.4429602
285.1093329
286.7757056
288.4420783
290.108451
291.7748236
293.4411963
295.107569
296.7739417
298.4403144
300.106687
301.7730597
303.4394324
305.1058051
306.7721778
308.4385504
310.1049231
311.7712958
313.4376685
315.1040412
316.7704138
318.4367865
320.1031592
321.7695319
323.4359046
325.1022773
326.7686499
328.4350226

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

327.1013953
328.767768
330.4341407
332.1005133
333.766886
335.4332587
337.0996314
338.7660041
340.4323767
342.0987494
343.7651221
345.4314948
347.0978675
348.7642401
350.4306128
352.0969855
353.7633582
355.4297309
357.0961035
358.7624762
360.4288489
362.0952216
363.7615943
365.427967
367.0943396
368.7607123
370.427085
372.0934577
373.7598304
375.426203
377.0925757
378.7589484
380.4253211
382.0916938
383.7580664
385.4244391
387.0908118
388.7571845
390.4235572
392.0899298
393.7563025
395.4226752
397.0890479

330.1013953
331.767768
333.4341407
335.1005133
336.766886
338.4332587
340.0996314
341.7660041
343.4323767
345.0987494
346.7651221
348.4314948
350.0978675
351.7642401
353.4306128
355.0969855
356.7633582
358.4297309
360.0961035
361.7624762
363.4288489
365.0952216
366.7615943
368.427967
370.0943396
371.7607123
373.427085
375.0934577
376.7598304
378.426203
380.0925757
381.7589484
383.4253211
385.0916938
386.7580664
388.4244391
390.0908118
391.7571845
393.4235572
395.0899298
396.7563025
398.4226752
400.0890479

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

398.7554206
400.4217933
402.0881659
403.7545386
405.4209113
407.087284
408.7536567
410.4200293
412.086402
413.7527747
415.4191474
417.0855201
418.7518927
420.4182654
422.0846381
423.7510108
425.4173835
427.0837561
428.7501288
430.4165015
432.0828742
433.7492469
435.4156195
437.0819922
438.7483649
440.4147376
442.0811103
443.747483
445.4138556
447.0802283
448.746601
450.4129737
452.0793464
453.745719
455.4120917
457.0784644
458.7448371
460.4112098
462.0775824
463.7439551
465.4103278
467.0767005
468.7430732

401.7554206
403.4217933
405.0881659
406.7545386
408.4209113
410.087284
411.7536567
413.4200293
415.086402
416.7527747
418.4191474
420.0855201
421.7518927
423.4182654
425.0846381
426.7510108
428.4173835
430.0837561
431.7501288
433.4165015
435.0828742
436.7492469
438.4156195
440.0819922
441.7483649
443.4147376
445.0811103
446.747483
448.4138556
450.0802283
451.746601
453.4129737
455.0793464
456.745719
458.4120917
460.0784644
461.7448371
463.4112098
465.0775824
466.7439551
468.4103278
470.0767005
471.7430732

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

470.4094458
472.0758185
473.7421912
475.4085639
477.0749366
478.7413093
480.4076819
482.0740546
483.7404273
485.4068
487.0731727
488.7395453
490.405918
492.0722907
493.7386634
495.4050361
497.0714087
498.7377814
500.4041541
502.0705268
503.7368995
505.4032721
507.0696448
508.7360175
510.4023902
512.0687629
513.7351355
515.4015082
517.0678809
518.7342536
520.4006263
522.066999
523.7333716
525.3997443
527.066117
528.7324897
530.3988624
532.065235
533.7316077
535.3979804
537.0643531
538.7307258
540.3970984

473.4094458
475.0758185
476.7421912
478.4085639
480.0749366
481.7413093
483.4076819
485.0740546
486.7404273
488.4068
490.0731727
491.7395453
493.405918
495.0722907
496.7386634
498.4050361
500.0714087
501.7377814
503.4041541
505.0705268
506.7368995
508.4032721
510.0696448
511.7360175
513.4023902
515.0687629
516.7351355
518.4015082
520.0678809
521.7342536
523.4006263
525.066999
526.7333716
528.3997443
530.066117
531.7324897
533.3988624
535.065235
536.7316077
538.3979804
540.0643531
541.7307258
543.3970984

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

542.0634711
543.7298438
545.3962165
547.0625892
548.7289618
550.3953345
552.0617072
553.7280799
555.3944526
557.0608253
558.7271979
560.3935706
562.0599433
563.726316
565.3926887
567.0590613
568.725434
570.3918067
572.0581794
573.7245521
575.3909247
577.0572974
578.7236701
580.3900428
582.0564155
583.7227881
585.3891608
587.0555335
588.7219062
590.3882789
592.0546515
593.7210242
595.3873969
597.0537696
598.7201423
600.386515
602.0528876
603.7192603
605.385633
607.0520057
608.7183784
610.384751
612.0511237

545.0634711
546.7298438
548.3962165
550.0625892
551.7289618
553.3953345
555.0617072
556.7280799
558.3944526
560.0608253
561.7271979
563.3935706
565.0599433
566.726316
568.3926887
570.0590613
571.725434
573.3918067
575.0581794
576.7245521
578.3909247
580.0572974
581.7236701
583.3900428
585.0564155
586.7227881
588.3891608
590.0555335
591.7219062
593.3882789
595.0546515
596.7210242
598.3873969
600.0537696
601.7201423
603.386515
605.0528876
606.7192603
608.385633
610.0520057
611.7183784
613.384751
615.0511237

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

613.7174964
615.3838691
617.0502418
618.7166144
620.3829871
622.0493598
623.7157325
625.3821052
627.0484778
628.7148505
630.3812232
632.0475959
633.7139686
635.3803412
637.0467139
638.7130866
640.3794593
642.045832
643.7122047
645.3785773
647.04495
648.7113227
650.3776954
652.0440681
653.7104407
655.3768134
657.0431861
658.7095588
660.3759315
662.0423041
663.7086768
665.3750495
667.0414222
668.7077949
670.3741675
672.0405402
673.7069129
675.3732856
677.0396583
678.706031
680.3724036
682.0387763
683.705149

616.7174964
618.3838691
620.0502418
621.7166144
623.3829871
625.0493598
626.7157325
628.3821052
630.0484778
631.7148505
633.3812232
635.0475959
636.7139686
638.3803412
640.0467139
641.7130866
643.3794593
645.045832
646.7122047
648.3785773
650.04495
651.7113227
653.3776954
655.0440681
656.7104407
658.3768134
660.0431861
661.7095588
663.3759315
665.0423041
666.7086768
668.3750495
670.0414222
671.7077949
673.3741675
675.0405402
676.7069129
678.3732856
680.0396583
681.706031
683.3724036
685.0387763
686.705149

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

685.3715217
687.0378944
688.704267
690.3706397
692.0370124
693.7033851
695.3697578
697.0361304
698.7025031
700.3688758
702.0352485
703.7016212
705.3679938
707.0343665
708.7007392
710.3671119
712.0334846
713.6998572
715.3662299
717.0326026
718.6989753
720.365348
722.0317207
723.6980933
725.364466
727.0308387
728.6972114
730.3635841
732.0299567
733.6963294
735.3627021
737.0290748
738.6954475
740.3618201
742.0281928
743.6945655
745.3609382
747.0273109
748.6936835
750.3600562
752.0264289
753.6928016
755.3591743

688.3715217
690.0378944
691.704267
693.3706397
695.0370124
696.7033851
698.3697578
700.0361304
701.7025031
703.3688758
705.0352485
706.7016212
708.3679938
710.0343665
711.7007392
713.3671119
715.0334846
716.6998572
718.3662299
720.0326026
721.6989753
723.365348
725.0317207
726.6980933
728.364466
730.0308387
731.6972114
733.3635841
735.0299567
736.6963294
738.3627021
740.0290748
741.6954475
743.3618201
745.0281928
746.6945655
748.3609382
750.0273109
751.6936835
753.3600562
755.0264289
756.6928016
758.3591743

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

757.025547
758.6919196
760.3582923
762.024665
763.6910377
765.3574104
767.023783
768.6901557
770.3565284
772.0229011
773.6892738
775.3556464
777.0220191
778.6883918
780.3547645
782.0211372
783.6875098
785.3538825
787.0202552
788.6866279
790.3530006
792.0193732
793.6857459
795.3521186
797.0184913
798.684864
800.3512367
802.0176093
803.683982
805.3503547
807.0167274
808.6831001
810.3494727
812.0158454
813.6822181
815.3485908
817.0149635
818.6813361
820.3477088
822.0140815
823.6804542
825.3468269
827.0131995

760.025547
761.6919196
763.3582923
765.024665
766.6910377
768.3574104
770.023783
771.6901557
773.3565284
775.0229011
776.6892738
778.3556464
780.0220191
781.6883918
783.3547645
785.0211372
786.6875098
788.3538825
790.0202552
791.6866279
793.3530006
795.0193732
796.6857459
798.3521186
800.0184913
801.684864
803.3512367
805.0176093
806.683982
808.3503547
810.0167274
811.6831001
813.3494727
815.0158454
816.6822181
818.3485908
820.0149635
821.6813361
823.3477088
825.0140815
826.6804542
828.3468269
830.0131995

0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904
0.565337904

1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681
1.666372681

828.6795722
830.3459449
832.0123176
833.6786903
835.345063
837.0114356
838.6778083
840.344181
842.0105537
843.6769264
845.343299
847.0096717
848.6760444

Math Lab coe :


ta= xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'C:C');
tt= xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'D:D');
n=xlsread('C:\Users\SABUJ\Downloads\PMIT-6103-Assignment_1.xlsx',2,'F:F');
Note : Using xlsread (filename,sheet,cell);this code we can read data
from xlsx sheet within fixed column; That reduce the time to plot data in
matlab.

831.6795722
833.3459449
835.0123176
836.6786903
838.345063
840.0114356
841.6778083
843.344181
845.0105537
846.6769264
848.343299
850.0096717
851.6760444
for i=1:500,
T=[ta(i),tt(i)];
N=[n(i), n(i)];
plot(T,N)
hold on
end
xlabel('Time in ms')
ylabel('Packets')
figure
for i=1:500,
stem(ta(i),1,'r^')
hold on
stem(tt(i),1,'bv')
hold on
end
xlabel('Time in ms')