• Tidak ada hasil yang ditemukan

Pengaruh Enhanced Distributed Channel Access (EDCA) Terhadap Kinerja Jaringan IEEE 802.11

N/A
N/A
Protected

Academic year: 2017

Membagikan "Pengaruh Enhanced Distributed Channel Access (EDCA) Terhadap Kinerja Jaringan IEEE 802.11"

Copied!
16
0
0

Teks penuh

(1)

LAMPIRAN

SOURCE CODE

import pamvotis.core.Simulator;

import pamvotis.exceptions.ElementDoesNotExistException;

import pamvotis.exceptions.ElementExistsException;

import pamvotis.exceptions.UnknownDistributionException;

import pamvotis.sources.FTPSource;

import pamvotis.sources.GenericSource;

//This class is just an example of how to use Pamvotis as an embedded simulator.

public class edca3 {

public static void main(String[] args) {

try {

System.out.println("Simulation Started!");

// First we must create a simulator object.

Simulator sim = new Simulator();

// Then we read the scenario parameters.

sim.confParams();

// We print the headers of the results files.

sim.printHeaders();

//We simulate for 10sec.

sim.simulate(1, 10000);

//We get the system throughput.

(2)

+ "\tSystem throughput: " + sim.getSysThrBps() + "Kbps");

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(3, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(3, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(4, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(4, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(5, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(5, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(6, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(6, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(7, 1000000, 17, 17, 17, 0);

(3)

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(8, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(8, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(9, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(9, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(10, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(10, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(11, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(11, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(12, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(12, new GenericSource(5, 'c', 8, 'c', 8000));

(4)

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(13, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(13, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(14, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(14, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(15, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(15, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(16, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(16, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(17, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(17, new GenericSource(5, 'c', 8, 'c', 8000));

(5)

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(18, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(18, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(19, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(19, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(20, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(20, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(21, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(21, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(22, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(22, new GenericSource(5, 'c', 8, 'c', 8000));

(6)

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(23, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(23, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(24, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(24, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(25, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(25, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(26, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(26, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(27, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(27, new GenericSource(5, 'c', 8, 'c', 8000));

(7)

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(28, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(28, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(29, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(29, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(30, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(30, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(31, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(31, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(32, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(32, new GenericSource(5, 'c', 8, 'c', 8000));

(8)

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(33, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(33, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(34, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(34, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(35, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(35, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(36, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(36, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(37, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(37, new GenericSource(5, 'c', 8, 'c', 8000));

(9)

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(38, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

sim.appendNewSource(38, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC0

//We add a new node, with ID 3, being in position (17,17), with coverage 17m, and AC 0.

sim.addNode(39, 1000000, 17, 17, 17, 0);

//We add a generic source with ID 1 to node 3.

sim.appendNewSource(39, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC1

//We add a new node, with ID 4, being in position (17,10), with coverage 17m, and AC 1.

sim.addNode(40, 1000000, 17, 10, 17, 1);

//We add a generic source with ID 1 to node 4.

sim.appendNewSource(40, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC2

//We add a new node, with ID 3, being in position (17,5), with coverage 17m, and AC 2.

sim.addNode(41, 1000000, 17, 5, 17, 2);

//We add a generic source with ID 1 to node 5.

sim.appendNewSource(41, new GenericSource(5, 'c', 8, 'c', 8000));

//Node AC3

//We add a new node, with ID 6, being in position (17,2), with coverage 17m, and AC 3.

sim.addNode(42, 1000000, 17, 2, 17, 3);

//We add a generic source with ID 1 to node 6.

(10)

sim.simulate(10001, 20000);

System.out.println("Time: " + sim.getTime() + " sec "

+ "\tSystem throughput: " + sim.getSysThrBps() + " Kbps ");

//We get the node throughput and the media access delay of node 3.

System.out.println("Node 1 Delay: " + sim.getDelay(3) + " sec "

+ "Node 1 Jitter: " + sim.getJitter(3) + " sec "

+ "Node 1 Media Delay: " + sim.getMDelay(3) + " sec "

+ "Node 1 Throughput: " + sim.getThrBps(3) + " sec ");

System.out.println("Node 2 Delay: " + sim.getDelay(4) + " sec "

+ "Node 2 Jitter: " + sim.getJitter(4) + " sec "

+ "Node 2 Media Delay: " + sim.getMDelay(4) + " sec "

+ "Node 2 Throughput: " + sim.getThrBps(4) + " Bps ");

System.out.println("Node 3 Delay: " + sim.getDelay(5) + " sec "

+ "Node 3 Jitter: " + sim.getJitter(5) + " sec "

+ "Node 3 Media Delay: " + sim.getMDelay(5) + " sec "

+ "Node 3 Throughput: " + sim.getThrBps(5) + " Bps ");

System.out.println("Node 4 Delay: " + sim.getDelay(6) + " sec "

+ "Node 4 Jitter: " + sim.getJitter(6) + " sec "

+ "Node 4 Media Delay: " + sim.getMDelay(6) + " sec "

+ "Node 4 Throughput: " + sim.getThrBps(6) + " Bps ");

System.out.println("Node 5 Delay: " + sim.getDelay(7) + " sec "

+ "Node 5 Jitter: " + sim.getJitter(7) + " sec "

+ "Node 5 Media Delay: " + sim.getMDelay(7) + " sec "

+ "Node 5 Throughput: " + sim.getThrBps(7) + " sec ");

System.out.println("Node 6 Delay: " + sim.getDelay(8) + " sec "

+ "Node 6 Jitter: " + sim.getJitter(8) + " sec "

+ "Node 6 Media Delay: " + sim.getMDelay(8) + " sec "

(11)

System.out.println("Node 7 Delay: " + sim.getDelay(9) + " sec "

+ "Node 7 Jitter: " + sim.getJitter(9) + " sec "

+ "Node 7 Media Delay: " + sim.getMDelay(9) + " sec "

+ "Node 7 Throughput: " + sim.getThrBps(9) + " Bps ");

System.out.println("Node 8 Delay: " + sim.getDelay(10) + " sec "

+ "Node 8 Jitter: " + sim.getJitter(10) + " sec "

+ "Node 8 Media Delay: " + sim.getMDelay(10) + " sec "

+ "Node 8 Throughput: " + sim.getThrBps(10) + " Bps ");

System.out.println("Node 9 Delay: " + sim.getDelay(11) + " sec "

+ "Node 9 Jitter: " + sim.getJitter(11) + " sec "

+ "Node 9 Media Delay: " + sim.getMDelay(11) + " sec "

+ "Node 9 Throughput: " + sim.getThrBps(11) + " Bps ");

System.out.println("Node 10 Delay: " + sim.getDelay(12) + " sec "

+ "Node 10 Jitter: " + sim.getJitter(12) + " sec "

+ "Node 10 Media Delay: " + sim.getMDelay(12) + " sec "

+ "Node 10 Throughput: " + sim.getThrBps(12) + " Bps ");

System.out.println("Node 11 Delay: " + sim.getDelay(13) + " sec "

+ "Node 11 Jitter: " + sim.getJitter(13) + " sec "

+ "Node 11 Media Delay: " + sim.getMDelay(13) + " sec "

+ "Node 11 Throughput: " + sim.getThrBps(13) + " Bps ");

System.out.println("Node 12 Delay: " + sim.getDelay(14) + " sec "

+ "Node 12 Jitter: " + sim.getJitter(14) + " sec "

+ "Node 12 Media Delay: " + sim.getMDelay(14) + " sec "

+ "Node 12 Throughput: " + sim.getThrBps(14) + " Bps ");

System.out.println("Node 13 Delay: " + sim.getDelay(15) + " sec "

+ "Node 13 Jitter: " + sim.getJitter(15) + " sec "

+ "Node 13 Media Delay: " + sim.getMDelay(15) + " sec "

+ "Node 13 Throughput: " + sim.getThrBps(15) + " Bps ");

(12)

+ "Node 14 Jitter: " + sim.getJitter(16) + " sec "

+ "Node 14 Media Delay: " + sim.getMDelay(16) + " sec "

+ "Node 14 Throughput: " + sim.getThrBps(16) + " Bps ");

System.out.println("Node 15 Delay: " + sim.getDelay(17) + " sec "

+ "Node 15 Jitter: " + sim.getJitter(17) + " sec "

+ "Node 15 Media Delay: " + sim.getMDelay(17) + " sec "

+ "Node 15 Throughput: " + sim.getThrBps(17) + " Bps ");

System.out.println("Node 16 Delay: " + sim.getDelay(18) + " sec "

+ "Node 16 Jitter: " + sim.getJitter(18) + " sec "

+ "Node 16 Media Delay: " + sim.getMDelay(18) + " sec "

+ "Node 16 Throughput: " + sim.getThrBps(18) + " Bps ");

System.out.println("Node 17 Delay: " + sim.getDelay(19) + " sec "

+ "Node 17 Jitter: " + sim.getJitter(19) + " sec "

+ "Node 17 Media Delay: " + sim.getMDelay(19) + " sec "

+ "Node 17 Throughput: " + sim.getThrBps(19) + " Bps ");

System.out.println("Node 18 Delay: " + sim.getDelay(20) + " sec "

+ "Node 18 Jitter: " + sim.getJitter(20) + " sec "

+ "Node 18 Media Delay: " + sim.getMDelay(20) + " sec "

+ "Node 18 Throughput: " + sim.getThrBps(20) + " Bps ");

System.out.println("Node 19 Delay: " + sim.getDelay(21) + " sec "

+ "Node 19 Jitter: " + sim.getJitter(21) + " sec "

+ "Node 19 Media Delay: " + sim.getMDelay(21) + " sec "

+ "Node 19 Throughput: " + sim.getThrBps(21) + " Bps ");

System.out.println("Node 20 Delay: " + sim.getDelay(22) + " sec "

+ "Node 20 Jitter: " + sim.getJitter(22) + " sec "

+ "Node 20 Media Delay: " + sim.getMDelay(22) + " sec "

+ "Node 20 Throughput: " + sim.getThrBps(22) + " Bps ");

System.out.println("Node 21 Delay: " + sim.getDelay(23) + " sec "

(13)

+ "Node 21 Media Delay: " + sim.getMDelay(23) + " sec "

+ "Node 21 Throughput: " + sim.getThrBps(23) + " sec ");

System.out.println("Node 22 Delay: " + sim.getDelay(24) + " sec "

+ "Node 22 Jitter: " + sim.getJitter(24) + " sec "

+ "Node 22 Media Delay: " + sim.getMDelay(24) + " sec "

+ "Node 22 Throughput: " + sim.getThrBps(24) + " Bps ");

System.out.println("Node 23 Delay: " + sim.getDelay(25) + " sec "

+ "Node 23 Jitter: " + sim.getJitter(25) + " sec "

+ "Node 23 Media Delay: " + sim.getMDelay(25) + " sec "

+ "Node 23 Throughput: " + sim.getThrBps(25) + " Bps ");

System.out.println("Node 24 Delay: " + sim.getDelay(26) + " sec "

+ "Node 24 Jitter: " + sim.getJitter(26) + " sec "

+ "Node 24 Media Delay: " + sim.getMDelay(26) + " sec "

+ "Node 24 Throughput: " + sim.getThrBps(26) + " sec ");

System.out.println("Node 25 Delay: " + sim.getDelay(27) + " sec "

+ "Node 25 Jitter: " + sim.getJitter(27) + " sec "

+ "Node 25 Media Delay: " + sim.getMDelay(27) + " sec "

+ "Node 25 Throughput: " + sim.getThrBps(27) + " Bps ");

System.out.println("Node 26 Delay: " + sim.getDelay(28) + " sec "

+ "Node 26 Jitter: " + sim.getJitter(28) + " sec "

+ "Node 26 Media Delay: " + sim.getMDelay(28) + " sec "

+ "Node 26 Throughput: " + sim.getThrBps(28) + " Bps ");

System.out.println("Node 27 Delay: " + sim.getDelay(29) + " sec "

+ "Node 27 Jitter: " + sim.getJitter(29) + " sec "

+ "Node 27 Media Delay: " + sim.getMDelay(29) + " sec "

+ "Node 27 Throughput: " + sim.getThrBps(29) + " sec ");

System.out.println("Node 28 Delay: " + sim.getDelay(30) + " sec "

+ "Node 28 Jitter: " + sim.getJitter(30) + " sec "

(14)

+ "Node 28 Throughput: " + sim.getThrBps(30) + " Bps ");

System.out.println("Node 29 Delay: " + sim.getDelay(31) + " sec "

+ "Node 29 Jitter: " + sim.getJitter(31) + " sec "

+ "Node 29 Media Delay: " + sim.getMDelay(31) + " sec "

+ "Node 29 Throughput: " + sim.getThrBps(31) + " Bps ");

System.out.println("Node 30 Delay: " + sim.getDelay(32) + " sec "

+ "Node 30 Jitter: " + sim.getJitter(32) + " sec "

+ "Node 30 Media Delay: " + sim.getMDelay(32) + " sec "

+ "Node 30 Throughput: " + sim.getThrBps(32) + " Bps ");

System.out.println("Node 31 Delay: " + sim.getDelay(33) + " sec "

+ "Node 31 Jitter: " + sim.getJitter(33) + " sec "

+ "Node 31 Media Delay: " + sim.getMDelay(33) + " sec "

+ "Node 31 Throughput: " + sim.getThrBps(33) + " sec ");

System.out.println("Node 32 Delay: " + sim.getDelay(34) + " sec "

+ "Node 32 Jitter: " + sim.getJitter(34) + " sec "

+ "Node 32 Media Delay: " + sim.getMDelay(34) + " sec "

+ "Node 32 Throughput: " + sim.getThrBps(34) + " Bps ");

System.out.println("Node 33 Delay: " + sim.getDelay(35) + " sec "

+ "Node 33 Jitter: " + sim.getJitter(35) + " sec "

+ "Node 33 Media Delay: " + sim.getMDelay(35) + " sec "

+ "Node 33 Throughput: " + sim.getThrBps(35) + " Bps ");

System.out.println("Node 34 Delay: " + sim.getDelay(36) + " sec "

+ "Node 34 Jitter: " + sim.getJitter(36) + " sec "

+ "Node 34 Media Delay: " + sim.getMDelay(36) + " sec "

+ "Node 34 Throughput: " + sim.getThrBps(36) + " Bps ");

System.out.println("Node 35 Delay: " + sim.getDelay(37) + " sec "

+ "Node 35 Jitter: " + sim.getJitter(37) + " sec "

+ "Node 35 Media Delay: " + sim.getMDelay(37) + " sec "

(15)

System.out.println("Node 36 Delay: " + sim.getDelay(38) + " sec "

+ "Node 36 Jitter: " + sim.getJitter(38) + " sec "

+ "Node 36 Media Delay: " + sim.getMDelay(38) + " sec "

+ "Node 36 Throughput: " + sim.getThrBps(38) + " Bps ");

System.out.println("Node 37 Delay: " + sim.getDelay(39) + " sec "

+ "Node 37 Jitter: " + sim.getJitter(39) + " sec "

+ "Node 37 Media Delay: " + sim.getMDelay(39) + " sec "

+ "Node 37 Throughput: " + sim.getThrBps(39) + " Bps ");

System.out.println("Node 38 Delay: " + sim.getDelay(40) + " sec "

+ "Node 38 Jitter: " + sim.getJitter(40) + " sec "

+ "Node 38 Media Delay: " + sim.getMDelay(40) + " sec "

+ "Node 38 Throughput: " + sim.getThrBps(40) + " Bps ");

System.out.println("Node 39 Delay: " + sim.getDelay(41) + " sec "

+ "Node 39 Jitter: " + sim.getJitter(41) + " sec "

+ "Node 39 Media Delay: " + sim.getMDelay(41) + " sec "

+ "Node 39 Throughput: " + sim.getThrBps(41) + " Bps ");

System.out.println("Node 40 Delay: " + sim.getDelay(42) + " sec "

+ "Node 40 Jitter: " + sim.getJitter(42) + " sec "

+ "Node 40 Media Delay: " + sim.getMDelay(42) + " sec "

+ "Node 40 Throughput: " + sim.getThrBps(42) + " Bps ");

//We get the system throughput and the media access delay of node 3.

System.out.println("Time: " + sim.getTime() + "sec "

+ "\tSystem throughput: " + sim.getSysThrBps() + "Kbps ");

//We remove the FTP source.

sim.removeAllNodes();

sim.printMeanValues();

System.out.println("Simulation finished!");

(16)

e.printStackTrace();

} catch (ElementDoesNotExistException e) {

e.printStackTrace();

} catch (UnknownDistributionException e) {

e.printStackTrace();

}

}

Referensi

Dokumen terkait

This study attempted to answer the research question: ‘How effective is the use of Schoology in pronunciation class?’ The participants of this study were 40

This paper analyzes the performance of both schemes in WSNs when an event is detected and the packet arrival rate of the network increases using packet delivery ratio(PDR),

In this study, face recognition is used as an example of image recognition to analyze the differences between Local Binary Patterns Histograms (LBPH) and OpenFace deep learning

This robot is controlled using an SH embedded micro computer therefore students can easily use the robot and learn how to control a robot.. We consider this robot and sensing system can

Example – Newton’s Law of Example – Newton’s Law of Cooling Cooling  This is a model of how the temperature of an object changes as it loses heat to the surrounding atmosphere:

Comment on the status of adjectives as an open or closed class crosslinguistically i.e., not just in English.. Languages use various means to distinguish noun phrases in the syntactic

They explain how ridiculous it would be to have an English title such as “The Language of Ouch” and in this case, it’d just be better to not use onomatopoeia altogether in the target