Вы находитесь на странице: 1из 30

EM PRACTICAL : 1

1: Step For Install ONE simulator on Windows. Step 1: Install JAVA on Windows7 Step 2: Set PATH = C:\Program Files\Java\jdk1.6.0_18\bin in Environment Variables in System Properties

M12IT11

Step 3: Set JAVA_HOME = C:\Program Files (x86)\Java\jdk1.6.0_10 in Environment Variables

PATEL RUCHIN.

Page 1

EM
Step 4: Take ONE_1.4.1 In Local disk c Step 5: Execute compile.bat

M12IT11

Step 6: Execute one.bat

PATEL RUCHIN.

Page 2

EM
2: Explain all folder organization in one_1.4.1 Name of Package Detail of package

M12IT11

Application Application package contain PingApplication class. The application can be configured to send pings with a fixed interval or to only answer to pings it receives. When the application to delivere ives a ping it sends a pong message in response. The corresponding PingAppReporter class can be used to record information about the application behaviour. Core Core package contains java class and interface(For exDTNsim.java,settings.java,debug.java,DTNHost.java,NetworkInterfac e.java). First DTNsim class is called when run any application. Contains the classes of Graphical User Interface Movement package contain movement model class. The movement of node is based on this class. There are different movement are available(For ex-RandomWalk,RandomWayPoint etc.).we want to use any movement it is describe like this (Group.movementModel = RandomWalk). Report package contains all the report classes. Report class used for the different report like (MessageDeliveryReport, contactTimeReport, ContactPerHourReport, TotalContactReport). Routing package contains all the router classes. Router class handel the message.router class decide how to message deliver to destination node.There are different routing class(ExMessageRouter,DirectDeliveryRouter,ActiveRouter etc.)

Gui Movement

Report

Routing

PATEL RUCHIN.

Page 3

EM Explain MessageStatsReoprts
CODE: /* * Copyright 2010 Aalto University, ComNet * Released under GPLv3. See LICENSE.txt for details. */ package report; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import core.DTNHost; import core.Message; import core.MessageListener;

M12IT11

/** * Report for generating different kind of total statistics about message * relaying performance. Messages that were created during the warm up period * are ignored. * <P><strong>Note:</strong> if some statistics could not be created (e.g. * overhead ratio if no messages were delivered) "NaN" is reported for * double values and zero for integer median(s). */ public class MessageStatsReport extends Report implements MessageListener { private Map<String, Double> creationTimes; private List<Double> latencies; private List<Integer> hopCounts; private List<Double> msgBufferTime; private List<Double> rtt; // round trip times private int nrofDropped; private int nrofRemoved; private int nrofStarted; private int nrofAborted; private int nrofRelayed; private int nrofCreated;
PATEL RUCHIN. Page 4

EM
private int nrofResponseReqCreated; private int nrofResponseDelivered; private int nrofDelivered;

M12IT11

/** * Constructor. */ public MessageStatsReport() { init(); } /* INITIALIZE FOLLOW NODES value*/ @Override protected void init(){ super.init(); this.creationTimes = new HashMap<String, Double>(); this.latencies = new ArrayList<Double>(); this.msgBufferTime = new ArrayList<Double>(); this.hopCounts = new ArrayList<Integer>(); this.rtt = new ArrayList<Double>(); this.nrofDropped = 0; this.nrofRemoved = 0; this.nrofStarted = 0; this.nrofAborted = 0; this.nrofRelayed = 0; this.nrofCreated = 0; this.nrofResponseReqCreated = 0; this.nrofResponseDelivered = 0; this.nrofDelivered = 0; } /* DELETE OR DROP MESSAGE*/ public void messageDeleted(Message m, DTNHost where, boolean dropped) { if (isWarmupID(m.getId())) { return; } if (dropped) { this.nrofDropped++;
PATEL RUCHIN. Page 5

EM
} else { this.nrofRemoved++; }

M12IT11

this.msgBufferTime.add(getSimTime() - m.getReceiveTime()); } /* TRANSFERABORT with some delay OF THE MESSAGE */ public void messageTransferAborted(Message m, DTNHost from, DTNHost to) { if (isWarmupID(m.getId())) { return; } this.nrofAborted++; } /*TRANSFER MESSAGE direct*/ public void messageTransferred(Message m, DTNHost from, DTNHost to, boolean finalTarget) { if (isWarmupID(m.getId())) { return; } this.nrofRelayed++; if (finalTarget) { this.latencies.add(getSimTime() this.creationTimes.get(m.getId()) ); this.nrofDelivered++; this.hopCounts.add(m.getHops().size() - 1); if (m.isResponse()) { this.rtt.add(getSimTime() m.getRequest().getCreationTime()); this.nrofResponseDelivered++; } } }
PATEL RUCHIN. Page 6

EM
/* CREATE NEW MESSAGE */ public void newMessage(Message m) { if (isWarmup()) { addWarmupID(m.getId()); return; } this.creationTimes.put(m.getId(), getSimTime()); this.nrofCreated++; if (m.getResponseSize() > 0) { this.nrofResponseReqCreated++; } }

M12IT11

/* START TRANSFERING MESSAGE */ public void messageTransferStarted(Message m, DTNHost from, DTNHost to) { if (isWarmupID(m.getId())) { return; } this.nrofStarted++; } /* this thing we see in reports */ @Override public void done() { write("Message stats for scenario " + getScenarioName() + "\nsim_time: " + format(getSimTime())); double deliveryProb = 0; // delivery probability double responseProb = 0; // request-response success probability double overHead = Double.NaN; // overhead ratio if (this.nrofCreated > 0) { deliveryProb = (1.0 * this.nrofDelivered) / this.nrofCreated; } if (this.nrofDelivered > 0) {
PATEL RUCHIN. Page 7

EM

M12IT11
overHead = (1.0 * (this.nrofRelayed this.nrofDelivered)) / this.nrofDelivered; } if (this.nrofResponseReqCreated > 0) { responseProb = (1.0* this.nrofResponseDelivered) / this.nrofResponseReqCreated; } /* this thing we see in reports*/ String statsText = "created: " + this.nrofCreated + "\nstarted: " + this.nrofStarted + "\nrelayed: " + this.nrofRelayed + "\naborted: " + this.nrofAborted + "\ndropped: " + this.nrofDropped + "\nremoved: " + this.nrofRemoved + "\ndelivered: " + this.nrofDelivered + "\ndelivery_prob: " + format(deliveryProb) + "\nresponse_prob: " + format(responseProb) + "\noverhead_ratio: " + format(overHead) + "\nlatency_avg: " + getAverage(this.latencies) + "\nlatency_med: " + getMedian(this.latencies) + "\nhopcount_avg: " + getIntAverage(this.hopCounts) + "\nhopcount_med: " + getIntMedian(this.hopCounts) + "\nbuffertime_avg: " + getAverage(this.msgBufferTime) + "\nbuffertime_med: " + getMedian(this.msgBufferTime) + "\nrtt_avg: " + getAverage(this.rtt) + "\nrtt_med: " + getMedian(this.rtt) ; write(statsText); super.done(); } }

PATEL RUCHIN.

Page 8

EM Explain default_settings.txt
# # Default settings for the simulation #

M12IT11

## Scenario settings Scenario.name = default_scenario #HERE WE CHANGE THE NAME...... Scenario.simulateConnections = true Scenario.updateInterval = 0.1 # 43200s == 12h Scenario.endTime = 43200 #TIME IN sec MAX TIME.....

## Interface-specific settings: # type : which interface class the interface belongs to # For different types, the sub-parameters are interface-specific # For SimpleBroadcastInterface, the parameters are: # transmitSpeed : transmit speed of the interface (bytes per second) # transmitRange : range of the interface (meters) # "Bluetooth" interface for all nodes btInterface.type = SimpleBroadcastInterface #TYPE OF INTERFACE # Transmit speed of 2 Mbps = 250kBps btInterface.transmitSpeed = 250k # SPEED OF TRANSMISSION btInterface.transmitRange = 10 # AREA COVER FOR TRANSMISSION # High speed, long range, interface for group 4 #IF WE WANT TO SPECIFY CHANGE IN SPEED,RANGE ETC...... highspeedInterface.type = SimpleBroadcastInterface highspeedInterface.transmitSpeed = 10M highspeedInterface.transmitRange = 1000 # Define 6 different node groups #DEFINE HOW MANY GROUP ARE THERE IN SENARIO........ Scenario.nrofHostGroups = 6 ## Group-specific settings: # groupID : Group's identifier. Used as the prefix of host names # nrofHosts: number of hosts in the group
PATEL RUCHIN. Page 9

EM

M12IT11

# movementModel: movement model of the hosts (valid class name from movement package) # waitTime: minimum and maximum wait times (seconds) after reaching destination # speed: minimum and maximum speeds (m/s) when moving on a path # bufferSize: size of the message buffer (bytes) # router: router used to route messages (valid class name from routing package) # activeTimes: Time intervals when the nodes in the group are active (start1, end1, start2, end2, ...) # msgTtl : TTL (minutes) of the messages created by this host group, default=infinite ## Group and movement model specific settings # pois: Points Of Interest indexes and probabilities (poiIndex1, poiProb1, poiIndex2, poiProb2, ... ) # for ShortestPathMapBasedMovement # okMaps : which map nodes are OK for the group (map file indexes), default=all # for all MapBasedMovent models # routeFile: route's file path - for MapRouteMovement # routeType: route's type - for MapRouteMovement

# Common settings for all groups # HERE IN MOVMENT MODEL WE CHANGE BY WHICH WE SEE IN MOVEMENT FOLADER. # ACCORDING TO NEED WE REPLACE......... Group.movementModel = ShortestPathMapBasedMovement #HERE WE REPLACE ROUTER BY CHANGE ROUTERS SITUATED IN ROUTING FOLDER.. # ACCORDING TO NEED WE REPLACE......... Group.router = EpidemicRouter # HERE WE SET BUFFER SIZE OF THE NODE.. Group.bufferSize = 5M # Group.waitTime = 0, 120 # All nodes have the bluetooth interface Group.nrofInterfaces = 1 Group.interface1 = btInterface # Walking speeds #SET WALKING SPEED OF GROUP AS WELL AS NODE...
PATEL RUCHIN. Page 10

EM
Group.speed = 0.5, 1.5 # Message TTL of 300 minutes (5 hours) #HERE WE SET TIME TO LEAVE OF MSG............ Group.msgTtl = 300 #HOW MANY HOST IN GROUP.. Group.nrofHosts = 40

M12IT11

#HERE WE SET ALL GROUP DIFF DIFF NAME, OR SOME SETTING ACCORDING TO #NEED OR REQUIREMENT # SETTING FOR 1ST GROUP.. # group1 (pedestrians) specific settings Group1.groupID = p # SETTING FOR 2NDGROUP.. # group2 specific settings Group2.groupID = c # cars can drive only on roads Group2.okMaps = 1 # 10-50 km/h Group2.speed = 2.7, 13.9 # SETTING FOR 3RDGROUP.. # another group of pedestrians Group3.groupID = w # SETTING FOR 4THGROUP. # The Tram groups Group4.groupID = t Group4.bufferSize = 50M Group4.movementModel = MapRouteMovement Group4.routeFile = data/tram3.wkt Group4.routeType = 1 Group4.waitTime = 10, 30 Group4.speed = 7, 10 Group4.nrofHosts = 2 Group4.nrofInterfaces = 2 Group4.interface1 = btInterface Group4.interface2 = highspeedInterface # SETTING FOR 5THGROUP. Group5.groupID = t
PATEL RUCHIN. Page 11

EM
Group5.bufferSize = 50M Group5.movementModel = MapRouteMovement Group5.routeFile = data/tram4.wkt Group5.routeType = 2 Group5.waitTime = 10, 30 Group5.speed = 7, 10 Group5.nrofHosts = 2 # SETTIGN FOR 6THGROUP. Group6.groupID = t Group6.bufferSize = 50M Group6.movementModel = MapRouteMovement Group6.routeFile = data/tram10.wkt Group6.routeType = 2 Group6.waitTime = 10, 30 Group6.speed = 7, 10 Group6.nrofHosts = 2

M12IT11

#CREAT MESSAGE...... ## Message creation parameters # How many event generators #HERE WE DECLARE HOW MANY EVENTS IN THE SINARIO... Events.nrof = 1 # Class of the first event generator Events1.class = MessageEventGenerator # (following settings are specific for the MessageEventGenerator class) # Creation interval in seconds (one new message every 25 to 35seconds) Events1.interval = 25,35 # Message sizes (500kB - 1MB) Events1.size = 500k,1M # range of message source/destination addresses Events1.hosts = 0,125 # Message ID prefix Events1.prefix = M

## Movement model settings # seed for movement models' pseudo random number generator (default = 0) MovementModel.rngSeed = 1 # World's size for Movement Models without implicit size (width, height; meters) #SIZE WHERE ALL NODES MOVES..
PATEL RUCHIN. Page 12

EM
MovementModel.worldSize = 4500, 3400 # # How long time to move hosts in the world before real simulation MovementModel.warmup = 1000 ## Map based movement -movement model specific settings MapBasedMovement.nrofMapFiles = 4 MapBasedMovement.mapFile1 = data/roads.wkt MapBasedMovement.mapFile2 = data/main_roads.wkt MapBasedMovement.mapFile3 = data/pedestrian_paths.wkt MapBasedMovement.mapFile4 = data/shops.wkt ## Reports - all report names have to be valid report classes

M12IT11

# how many reports to load Report.nrofReports = 1# IF WANT TO ADD REPORTS THEN CHANGE NO.. # length of the warm up period (simulated seconds) Report.warmup = 0 # default directory of reports (can be overridden per Report with output setting) Report.reportDir = reports/ # Report classes to load Report.report1 = MessageStatsReport # HERE ALL OTHER REPORTS IF NEED THEN... ## Default settings for some routers settings ProphetRouter.secondsInTimeUnit = 30 SprayAndWaitRouter.nrofCopies = 6 SprayAndWaitRouter.binaryMode = true ## Optimization settings -- these affect the speed of the simulation ## see World class for details. Optimization.cellSizeMult = 5 Optimization.randomizeUpdateOrder = true

## GUI settings # GUI underlay image settings


PATEL RUCHIN. Page 13

EM
GUI.UnderlayImage.fileName = data/helsinki_underlay.png # Image offset in pixels (x, y) GUI.UnderlayImage.offset = 64, 20 # Scaling factor for the image GUI.UnderlayImage.scale = 4.75 # Image rotation (radians) GUI.UnderlayImage.rotate = -0.015

M12IT11

# how many events to show in the log panel (default = 30) GUI.EventLogPanel.nrofEvents = 100 # Regular Expression log filter (see Pattern-class from the Java API for REmatching details) #GUI.EventLogPanel.REfilter = .*p[1-9]<->p[1-9]$

PING APPLICATION:
Ping_app_settings.txt File: - This configuration file adds Ping application for all the nodes and - a report module that counts the number of pings & pongs sent & received

# Here I Fix Scenario EndTime Scenario.endTime = 2500 # Define new application pingApp.type = PingApplication pingApp.interval = 500 pingApp.destinationRange = 0,125 pingApp.pingSize = 5 pingApp.pongSize = 5 pingApp.passive = false
PATEL RUCHIN. Page 14

EM
# Set Ping app for all nodes Group.nrofApplications = 1 Group.application1 = pingApp # Add report for Ping app Report.nrofReports = 2 Report.report2 = PingAppReporter

M12IT11

Run Ping Application:


- If we run the ping application file with different ping.App.interval time. - Here assume that I take all reading for Scenario.endTime = 2000. - We get following different scenario: Scenario Scenario 1 2 Scenario 3 Scenario 4 Scenario 5

pingApp.interval

500

1000

1500

2000

2500

pings sent

882

378

252

126 119

pings received

413

176

102

52

126

pongs sent

413

176

102

52

52

pongs received ping delivery prob

69 0.4683

16 0.4656

13 0.4048

3 0.4127

52 3

PATEL RUCHIN.

Page 15

EM
0.0909 pong delivery prob 0.1671 0.0782 0.0423 0.0516 0.0238 0.1275 0.0577

M12IT11

0.4127 0.0577

ping/pong success prob

Graph of Ping Application:

1000 800 600 400 200 0 500 1000 1500 2000 2500 ping sent ping received

500 400 300 200 100 0 500 1000 1500 2000 2500 pong sent pong received

PATEL RUCHIN.

Page 16

EM PRACTICAL : 2-A
r.txt :
Scenario.name = sh Scenario.endTime = 43200 Scenario.nrofHostGroups = 6 #Group.movementModel = RandomWalk Group.router = DirectDeliveryRouter #change this 10,20,30,40,50,60 Group.nrofHosts = 10 Events1.hosts = 0,9

M12IT11

CODE FLOW:
MessageRouter ActiveRouter DirectDeliveryRouter update() replicate()

Readings:
10 Message stats for scenario sh sim_time: 43200.1000 created: 1457 started: 54 relayed: 48 aborted: 6 dropped: 1400 removed: 0 delivered: 48 delivery_prob: 0.0329 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 713.5167 latency_med: 658.3000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 1637.6079 buffertime_med: 1558.0000 rtt_avg: NaN rtt_med: NaN 30 Message stats for scenario sh sim_time: 43200.1000 created: 1462 started: 144 relayed: 141 aborted: 3 dropped: 1284 removed: 0 delivered: 141 delivery_prob: 0.0964 20 Message stats for scenario sh sim_time: 43200.1000 created: 1464 started: 117 relayed: 113 aborted: 4 dropped: 1352 removed: 0 delivered: 113 delivery_prob: 0.0772 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 1758.5664 latency_med: 1628.9000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 3411.1830 buffertime_med: 3199.0000 rtt_avg: NaN rtt_med: NaN 40 Message stats for scenario sh sim_time: 43200.1000 created: 1464 started: 219 relayed: 218 aborted: 1 dropped: 1232 removed: 0 delivered: 218 delivery_prob: 0.1489

PATEL RUCHIN.

Page 17

EM
response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 2701.5447 latency_med: 2441.1000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 5093.0886 buffertime_med: 4762.0000 rtt_avg: NaN rtt_med: NaN 50 Message stats for scenario sh sim_time: 43200.1000 created: 1460 started: 256 relayed: 254 aborted: 2 dropped: 1162 removed: 0 delivered: 254 delivery_prob: 0.1740 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 4496.9591 latency_med: 3738.2000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 8449.9910 buffertime_med: 7972.0000 rtt_avg: NaN rtt_med: NaN NOTE : Delivery ratio = delivery_prob *100 Node 10 20 30 40 50 60 Deliver y ratio 3.29 7.72 9.64 14.89 17.40 22.59 Over head 0 0 0 0 0 0 Msg_ drop 1400 1352 1284 1232 1162 1123
1600 1400 1200 1000 800 600 400 200 0 10 20 30 40 50 60

M12IT11
response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 3347.0284 latency_med: 2848.9000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 6707.2407 buffertime_med: 6386.7000 rtt_avg: NaN rtt_med: NaN 60 Message stats for scenario sh sim_time: 43200.1000 created: 1465 started: 333 relayed: 331 aborted: 2 dropped: 1123 removed: 0 delivered: 331 delivery_prob: 0.2259 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 4954.7021 latency_med: 4175.0000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 9891.3043 buffertime_med: 9507.0000 rtt_avg: NaN rtt_med: NaN

Delivery ratio Overhead Msg_drop

PATEL RUCHIN.

Page 18

EM

M12IT11

PRACTICAL : 2-B
Prerequisites:
1. Install Netbeans IDE 7.0.1. 2. source code of one simulator(one_1.4.1 or above)

Configuration steps :
Step 1: Install Netbeans IDE 7.0.1. Step 2: Create Netbeans Project and Select Java Application from Java.

PATEL RUCHIN.

Page 19

EM
Step 3: Specify name of Project and unmark main class and click on finish button

M12IT11

Step 4: Copy all directories of one_1.4.1 original source into netbeans project Location

Documents >NetbeansProjects > ONE >src folder


Step: 5 Click on project name and select project properties

PATEL RUCHIN.

Page 20

EM

M12IT11

Step 6: Select Libraries and click on Add JAR Folder.

Step 7: Select DTNConsoleConnection.jar and ECLA.jar

PATEL RUCHIN.

Page 21

EM

M12IT11

Step 8: Select Run from categories manu.and Set Main class value from Browse. Step 9: Set working directories by selecting created netbeans project path.

Step 10: Set Arguments value is path of default_settings.txt

Arguments = C:\Users\abhi\Documents\NetBeansProjects\ONE\src\default_settings.txt

For Batch Mode you can also set arguments like Arguments = -b 1 C:\Users\abhi\Documents\NetBeansProjects\ONE\src\default_settings.txt PATEL RUCHIN. Page 22

EM

M12IT11

Step11:RunProject.

PATEL RUCHIN.

Page 23

EM PRACTICAL : 2-C
HelloRouter.java
HelloRouter.java

M12IT11

First we want to make Router so we have to make our own class file in Routing Package. hellorouter.java file is As below

package routing; import core.Settings;

public class HelloRouter extends ActiveRouter { public HelloRouter(Settings s) { super(s); }

protected HelloRouter(HelloRouter r) { super(r); }

@Override public void update() { super.update();

PATEL RUCHIN.

Page 24

EM
if (isTransferring() || !canStartTransfer()) { return; // can't start a new transfer }

M12IT11

// Try only the messages that can be delivered to final recipient if (exchangeDeliverableMessages() != null) { return; // started a transfer }

System.out.println("HelloRouter"); }

@Override public HelloRouter replicate() { return new HelloRouter(this);

} }

PATEL RUCHIN.

Page 25

EM
Now compile this hellorouter.java which generate hellorouter.class file. Now edit default_settings.txt file write Group.router = hellorouter Now run Simulator in batch mode C:\one_1.4.1\-b 1 One.bat default_settings.txt Or We use NetBeans to make and run hellorouter

M12IT11

Output:-

compile.bat one.bat b 1 default_settings.txt

PATEL RUCHIN.

Page 26

EM PRACTICAL : 3-A
Explain EPIDEMIC ROUTER :

M12IT11

Epidemic routingis flooding-based in nature, as nodes continuously replicate and transmit messages to newly discovered contacts that do not already possess a copy of the message. In the simplest case, epidemic routing is flooding; however, more sophisticated techniques can be used to limit the number of message transfers. Epidemic routing has its roots in ensuring distributed databases remain synchronized, and many of these techniques, such as rumor mongering, can be directly applied to routing.

CODE FLOW

MessageRouter

ActiveRouter

EpidemicRouter

update()

replicate()

sh.txt Scenario.name = shp3 Scenario.endTime = 43000 Scenario.nrofHostGroups = 1 #Group.movementModel = RandomWalk #Group.router = EpidemicRouter Group.router = DirectDeliveryRouter Group.nrofHosts = 50 Events1.hosts = 0,49 #BOTH ALLTERNET CHANGE

PATEL RUCHIN.

Page 27

EM
READINGS
DELIVERY RATIO DIRECTDELIVERY ROUTER Message stats for scenario shp3 sim_time: 43000.1000 created: 1450 started: 47 relayed: 47 aborted: 0 dropped: 1394 removed: 0 delivered: 47 delivery_prob: 0.0324 =3.24 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 829.4574 latency_med: 704.1000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 1635.1438 buffertime_med: 1553.0000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1457 started: 106 relayed: 103 aborted: 3 dropped: 1344 removed: 0 delivered: 103 delivery_prob: 0.0707 =7.07 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 1949.5136 latency_med: 1764.3000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 3421.1220 buffertime_med: 3213.0000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1456

M12IT11

NODE 10 EPIDEMIC ROUTER Message stats for scenario shp3 sim_time: 43000.1000 created: 1450 started: 200 relayed: 165 aborted: 35 dropped: 1504 removed: 0 delivered: 52 delivery_prob: 0.0359 =3.59 response_prob: 0.0000 overhead_ratio: 2.1731 latency_avg: 1291.6750 latency_med: 866.6000 hopcount_avg: 1.1538 hopcount_med: 1 buffertime_avg: 1617.8812 buffertime_med: 1472.0000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1457 started: 1054 relayed: 867 aborted: 187 dropped: 2099 removed: 0 delivered: 107 delivery_prob: 0.0734 =7.34 response_prob: 0.0000 overhead_ratio: 7.1028 latency_avg: 2003.6589 latency_med: 1526.7000 hopcount_avg: 1.5327 hopcount_med: 1 buffertime_avg: 2318.8259 buffertime_med: 2150.0000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1456

20

30

PATEL RUCHIN.

Page 28

EM
started: 1908 relayed: 1587 aborted: 320 dropped: 2732 removed: 0 delivered: 135 delivery_prob: 0.0927 =9.27 response_prob: 0.0000 overhead_ratio: 10.7556 latency_avg: 2675.1207 latency_med: 1859.9000 hopcount_avg: 1.5630 hopcount_med: 1 buffertime_avg: 2600.0844 buffertime_med: 2337.5000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1457 started: 4074 relayed: 3365 aborted: 709 dropped: 4394 removed: 0 delivered: 201 delivery_prob: 0.1380 =13.80 response_prob: 0.0000 overhead_ratio: 15.7413 latency_avg: 3533.7015 latency_med: 2888.5000 hopcount_avg: 2.6468 hopcount_med: 2 buffertime_avg: 2127.2816 buffertime_med: 1751.9000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1453 started: 5428 relayed: 4510 aborted: 917 dropped: 5429 removed: 0 delivered: 216 delivery_prob: 0.1487 =14.87 started: 151 relayed: 150 aborted: 1 dropped: 1281 removed: 0 delivered: 150 delivery_prob: 0.1030 =10.30 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 2645.7700 latency_med: 2240.2000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 5098.0472 buffertime_med: 4742.9000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1457 started: 217 relayed: 216 aborted: 1 dropped: 1225 removed: 0 delivered: 216 delivery_prob: 0.1482 =14.82 response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 3612.4935 latency_med: 3098.8000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 6712.7086 buffertime_med: 6392.0000 rtt_avg: NaN rtt_med: NaN Message stats for scenario shp3 sim_time: 43000.1000 created: 1453 started: 220 relayed: 218 aborted: 2 dropped: 1151 removed: 0 delivered: 218 delivery_prob: 0.1500 =15.00

M12IT11

40

50

PATEL RUCHIN.

Page 29

EM
response_prob: 0.0000 overhead_ratio: 19.8796 latency_avg: 3999.5792 latency_med: 3095.3000 hopcount_avg: 2.5741 hopcount_med: 2 buffertime_avg: 2143.4069 buffertime_med: 1706.6000 rtt_avg: NaN rtt_med: NaN response_prob: 0.0000 overhead_ratio: 0.0000 latency_avg: 3963.6271 latency_med: 3223.0000 hopcount_avg: 1.0000 hopcount_med: 1 buffertime_avg: 8458.6913 buffertime_med: 7970.0000 rtt_avg: NaN rtt_med: NaN

M12IT11

Reading AND graph


NODE DELIVERY RATIO EPIDEMIC DIRECTDEL ROUTER IVERY ROUTER 3.59 3.24 7.34 9.27 13.80 14.87 7.07 10.30 14.82 15.00
16 14 12 10 8 6 DELIVERY RATIO DIRECT DELIVERY ROUTER DELIVERY RATIO EPIDEMIC ROUTER

10 20 30 40 50

4 2 0 10 20 30 40 50

PATEL RUCHIN.

Page 30