Analisis Pengaruh Buffering Transport Pada Jaringan IEEE-802.11

LAMPIRAN

Lampiran 1 Penambahan Delay Pada Source Code Simulator.Java
private void takePacketFromQueue(int i) {
int idleDur = 0;
MobileNode n = (MobileNode) nodesList.elementAt(i);
n.pktLength = n.getPacketBuffer().firstPacket().length;
n.queuingDelay += MobileNode.timer
- n.getPacketBuffer().firstPacket().generationTime + 1000/8;
idleDur = (int) (MobileNode.timer - n.lastPktTrans);
if (idleDur > (int) (n.params.aifsd / slot)) {
n.contWind = n.params.cwMin;
n.backoffCounter = 0;
} else {
n.contWind = n.params.cwMin;
n.backoffCounter = n.InitBackoff(n.params.cwMin);
}
n.transmissionStart = MobileNode.timer;
n.havePktToSend = true;
}


private void freeze() {
int thisDur = 0; // Helpful variable.
MobileNode n = null;

Universitas Sumatera Utara

transTimeRemaining--;
if (transTimeRemaining == 0) {
transmissionPending = false;
transmitWithRTS = false;
for (int i = 0; i < nmbrOfNodes; i++) {
n = (MobileNode) nodesList.elementAt(i);
// Disable the nowTransmitting flag.
n.nowTransmitting = false;
// If a station finishes a successful transmission:
if (n.successfullyTransmitting == true) {
n.successfullyTransmitting = false;
n.successfulTransmissions++;
n.successfulBits += n.pktLength;
n.transmissionDuration += MobileNode.timer - n.transmissionStart

+ 1;
thisDur

=

(int)

(MobileNode.timer

-

n.getPacketBuffer().firstPacket().generationTime + 1000/8);
n.jitter

+=

(int)

Math.pow((double) thisDur, (double) 2);
n.getPacketBuffer().dequeue();

n.havePktToSend = false;
n.lastPktTrans = MobileNode.timer;
}
}

Universitas Sumatera Utara

}
}

Lampiran 2 Perbandingan Kinerja Media Access Delay (msec) Terhadap
Pengaruh Penggunaan Buffering pada standar fisik IEEE
802.11b untuk data rate 2 Mb/s.
Media Access Delay (msec)
Dengan Buffering
Tanpa Buffering
2.89
1.8905
2.9725
1.9725

3.081667
2.068333
3.1725
2.1825
3.374
2.338
3.553333
2.561667
3.735
2.73
3.909375
3.080625
4.134444
3.416667
4.372
3.8475
4.809091
4.437273
5.292917
4.4375

5.780769
6.720769
6.555357
9.547857
7.239667
19.13133
8.221563
53.27906
10.18765
64.34088
12.93944
73.2725
15.71789
78.78158
32.36375
83.173

Node
2
4

6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40

Lampiran 3 Perbandingan Kinerja Media Access Delay (msec) Terhadap

Pengaruh Penggunaan Buffering pada standar fisik IEEE
802.11b untuk data rate 5.5 Mb/s.
Node
2

Media Access Delay (msec)
Dengan Buffering
Tanpa Buffering
1.39
1.0205

Universitas Sumatera Utara

4
6
8
10
12
14
16

18
20
22
24
26
28
30
32
34
36
38
40

1.4025
1.428333
1.455
1.485
1.4975
1.533571
1.5725

1.596111
1.6445
1.691364
1.7325
1.776538
1.850357
1.900333
1.970938
2.051765
2.139722
2.236842
2.3015

1.0425
1.073333
1.09875
1.131
1.1775
1.218571
1.2775

1.331667
1.4135
1.478636
1.562083
1.688846
1.804643
1.946667
2.085313
2.351176
2.612778
2.921316
3.247

Lampiran 4 Perbandingan Kinerja Media Access Delay (msec) Terhadap
Pengaruh Penggunaan Buffering pada standar fisik IEEE
802.11g untuk data rate 6 Mb/s.
Node
2
4
6

8
10
12
14
16
18
20
22
24
26
28
30

Media Access Delay (msec)
Dengan Buffering
Tanpa Buffering
0.98
0.66
0.9975
0.6625
1.011667
0.675
1.02
0.688375
1.036
0.699
1.040833
0.705833
1.055
0.718571
1.07
0.73125
1.078333
0.743889
1.099
0.761
1.11363
0.770455
1.122917
0.7925
1.14
0.814615
1.157143
0.825714
1.185
0.845667

Universitas Sumatera Utara