Hello,
I run LEACH 0.2 for 100 sec. i received 62 data packets at BS (Node
0) at application level, while total number of data packets generated
by all the nodes at application level = 2900 ...is that normal or
there is something wrong ?
thank you...
leach.ini
#
********************************************************************************
# * Copyright (c) Federal University of Para, brazil -
2011 *
# * Developed at the Research Group on Computer Network and
Multimedia *
# * Communication
(GERCOM) *
# * All rights reserved *
# * *
# * Permission to use, copy, modify, and distribute this protocol and
its *
# * documentation for any purpose, without fee, and without
written *
# * agreement is hereby granted, provided that the above copyright
notice, *
# * and the author appear in all copies of this
protocol. *
# * *
# * Module: LEACH Routing Protocol for Castalia
Simulator *
# * Version:
0.2 *
# * Author(s): Adonias Pires
<
ado...@ufpa.br> *
# * Claudio Silva
<
claudi...@itec.ufpa.br> *
#
*******************************************************************************/
[General]
#########################
## Network #####
########################
include ../Parameters/PhysicalProcess/node0_asssignedValue40.ini
include ../Parameters/Castalia.ini
repeat = 1
seed-set = ${repetition}
sim-time-limit = 100s
SN.field_x = 70 # meters
SN.field_y = 70 # meters
SN.numNodes = 100
SN.deployment = "[1..99]->uniform"
SN.node[0].xCoor = 0
SN.node[0].yCoor = 0
#########################
## Traces #####
########################
SN.wirelessChannel.collectTraceInfo = false
SN.node[*].Communication.Radio.collectTraceInfo = false
SN.node[*].Communication.MAC.collectTraceInfo = false
SN.node[*].Communication.Routing.collectTraceInfo = false
SN.node[2].Application.collectTraceInfo = true
SN.node[*].SensorManager.collectTraceInfo = false
SN.node[*].ResourceManager.collectTraceInfo = false
#########################
## MAC #####
########################
#-----CSMA-CA-----#
SN.node[*].Communication.MACProtocolName = "CC2420Mac"
SN.node[*].Communication.MAC.collectTraceInfo = false
SN.node[*].Communication.MAC.txFifoWriteTimeout = 0
SN.node[*].Communication.MAC.enableCCA = true
SN.node[*].Communication.MAC.datarate = 250000 #must be the same than
Radio module
SN.node[*].Communication.MAC.phyFrameOverhead = 6 #must be the same
than Radio module
SN.node[*].Communication.MAC.macPacketOverhead = 11
SN.node[*].Communication.MAC.macAckOverhead = 5
#########################
## Routing #####
########################
SN.node[*].Communication.RoutingProtocolName = "LeachRouting"
SN.node[*].Communication.Routing.netBufferSize = 1000
SN.node[0].Communication.Routing.isSink = true
SN.node[*].Communication.Routing.slotLength = 0.2
SN.node[*].Communication.Routing.roundLength = 20s
SN.node[*].Communication.Routing.percentage = 0.05
SN.node[*].Communication.Routing.powersConfig =
xmldoc("powersConfig.xml")
#########################
## Application #####
########################
SN.node[*].ApplicationName = "ThroughputTest"
SN.node[*].Application.packet_rate = 0.3333
SN.node[*].Application.startupDelay = 10
SN.node[*].Application.constantDataPayload = 10
#########################
## Wireless Channel #####
########################
SN.wirelessChannel.onlyStaticNodes = true
SN.wirelessChannel.bidirectionalSigma = 0
SN.wirelessChannel.pathLossExponent = 2.4
SN.wirelessChannel.PLd0 = 55
SN.wirelessChannel.d0 = 1.0
SN.wirelessChannel.sigma = 4.0
#########################
## Radio #####
########################
SN.node[*].Communication.Radio.RadioParametersFile = "../Parameters/
Radio/CC2420.txt"