loadbalncing in olsr

500 views
Skip to first unread message

Manojkumar Annamraju

unread,
Mar 20, 2012, 1:58:32 AM3/20/12
to omn...@googlegroups.com
hi alfonso,

           i am  doing loadbalancing in olsr protocol.i need to change the route which node is highest enegry.my doubt is if i can change the olsr routing protocol ,how to recompile the modified olsr protocol.


         please alfonso help me...................

    

Alfonso Ariza Quintana

unread,
Mar 20, 2012, 8:30:33 AM3/20/12
to omn...@googlegroups.com

Build, if you select build the new code will be recompiled


Date: Mon, 19 Mar 2012 22:58:32 -0700
From: manoj8a...@gmail.com
To: omn...@googlegroups.com
Subject: [Omnetpp-l] loadbalncing in olsr


hi alfonso,

           i am  doing loadbalancing in olsr protocol.i need to change the route which node is highest enegry.my doubt is if i can change the olsr routing protocol ,how to recompile the modified olsr protocol.


         please alfonso help me...................

    

--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Manojkumar Annamraju

unread,
Mar 20, 2012, 10:54:56 PM3/20/12
to omn...@googlegroups.com
ok alfonso thank u

Manojkumar Annamraju

unread,
Mar 21, 2012, 3:17:50 AM3/21/12
to omn...@googlegroups.com
hi alfonso,

    in inetsimplebattery .cc file contains registerwirelessdevice() method is there,  my doubt is  i use the inetsimplebattery module in my adhoc host,but my doubt is how to register the this adhoc host device. so please expalin .................

Alfonso Ariza Quintana

unread,
Mar 21, 2012, 11:46:49 AM3/21/12
to omn...@googlegroups.com

see
void Radio::registerBattery()

is this method that register the radio interface in the battery model


Date: Wed, 21 Mar 2012 12:47:50 +0530
Subject: Re: [Omnetpp-l] loadbalncing in olsr
From: manoj8a...@gmail.com
To: omn...@googlegroups.com

Manojkumar Annamraju

unread,
Mar 21, 2012, 11:56:07 PM3/21/12
to omn...@googlegroups.com
hi alfonso,

       i add the inetsimplebattery module in adhoc host module i added,but how can i know this this adhochost is registerd .

Manojkumar Annamraju

unread,
Mar 22, 2012, 5:16:28 AM3/22/12
to omn...@googlegroups.com
hi alfonso,

         in AnalysisEnergy module ,void AnalysisEnergy::SnapshotEnergies()  in this method the energy values of host is stored in the filename(// "energies-$network-$run-$time.snapshot
    std::stringstream filename;
    filename << "energies-" << simulation.getSystemModule()->getName() << "-"
    << "-" << simTime() << ".snapshot";)

actuallly i used this module in my adhost module,and also i given the parameter values. but  i am not accesing the above file.

pls tell me how to access that file  in tcl/tk environment.

Alfonso Ariza Quintana

unread,
Mar 22, 2012, 7:20:45 AM3/22/12
to omn...@googlegroups.com
You can't access this file from the tcl/tk


Date: Thu, 22 Mar 2012 14:46:28 +0530

Subject: Re: [Omnetpp-l] loadbalncing in olsr
From: manoj8a...@gmail.com
To: omn...@googlegroups.com

Manojkumar Annamraju

unread,
Mar 24, 2012, 3:21:20 AM3/24/12
to omn...@googlegroups.com
how can i find the energy of the host ,while i am running the my
network.pls tell me

On 3/22/12, Alfonso Ariza Quintana <aari...@hotmail.com> wrote:
>
> You can't access this file from the tcl/tk
>

Alfonso Ariza Quintana

unread,
Mar 24, 2012, 9:06:45 AM3/24/12
to omn...@googlegroups.com

The battery module shows in the IDE the residual energy. Open the battery module and search the parameter
lastPublishCapacity

> Date: Sat, 24 Mar 2012 12:51:20 +0530

Manojkumar Annamraju

unread,
Mar 26, 2012, 12:51:36 AM3/26/12
to omn...@googlegroups.com
alfonso i am using AnalysisEnergy module in my adhochost,i am using olsr protocol and while running the my network ,how can i findout the energy of the host.

Alfonso Ariza Quintana

unread,
Mar 26, 2012, 5:24:33 AM3/26/12
to omn...@googlegroups.com
Open the Battery module and search the parameter lastPublishCapacity


Date: Mon, 26 Mar 2012 10:21:36 +0530

Manojkumar Annamraju

unread,
Mar 27, 2012, 1:55:00 AM3/27/12
to omn...@googlegroups.com
hi alfonso, i am not getting the battery module please help  me how to enter into the batterymodule at runtime

Alfonso Ariza Quintana

unread,
Mar 27, 2012, 4:48:02 AM3/27/12
to omn...@googlegroups.com
The battery module must be included in the node definition, you can't included the battery model in run time


Date: Tue, 27 Mar 2012 11:25:00 +0530

Manojkumar Annamraju

unread,
Mar 27, 2012, 10:39:45 PM3/27/12
to omn...@googlegroups.com
sir can you tell me how to include batterymodule at runtime .pls tell me .....

Alfonso Ariza Quintana

unread,
Mar 28, 2012, 4:46:42 AM3/28/12
to omn...@googlegroups.com

You can't include the battery module in run time, must be included in the node definition


Date: Wed, 28 Mar 2012 08:09:45 +0530

Manojkumar Annamraju

unread,
Apr 2, 2012, 10:02:25 AM4/2/12
to omn...@googlegroups.com
hi sir, i included the battery module ,and in inspect objects i am not finding the lastmodulecapacity parameter .pls help me how to find the  host power while running.pls help me................

Alfonso Ariza Quintana

unread,
Apr 3, 2012, 6:47:19 AM4/3/12
to omn...@googlegroups.com
the parameters exist in InetSimpleBattery I have just checked, but the radio module must inform to the battery module the consume in every state (idle, transmission, reception ...)


Date: Mon, 2 Apr 2012 19:32:25 +0530

Manojkumar Annamraju

unread,
Apr 5, 2012, 10:34:54 AM4/5/12
to omn...@googlegroups.com
yes i get the lastpublishcapcity,the value is fixed it is not consuming the energy.how to reduce the energy value while forwarding the packet of the node

Alfonso Ariza Quintana

unread,
Apr 5, 2012, 5:16:13 PM4/5/12
to omn...@googlegroups.com

the radio module must register the consume in every state, if the radio module doesn't register the consume the  charge will continue constant .


See the 802.15.4 radio module code




Date: Thu, 5 Apr 2012 20:04:54 +0530

Manojkumar Annamraju

unread,
Apr 7, 2012, 11:15:40 AM4/7/12
to omn...@googlegroups.com
hi alfonso,
   
    i checked the 802.15.4 radio module code,but i didn't understand ,how the how the radio module is registered in battery module.I also checked the analysis energy module but i didn't get.please can u tell me how to register the radio module in inetsimplebattery module .pls 
explain.................

Manojkumar Annamraju

unread,
Apr 12, 2012, 4:24:17 AM4/12/12
to omn...@googlegroups.com

i checked the 802.15.4 radio model, but i didn't get .please tell me how to register the radio module in battery module .
Message has been deleted

Behrouz Seyedi

unread,
Apr 12, 2012, 4:59:25 AM4/12/12
to omn...@googlegroups.com
I have this problem too...
look at this post:  residual capacity isn't changing

Alfonso Ariza Quintana

unread,
Apr 12, 2012, 6:31:17 AM4/12/12
to omn...@googlegroups.com
void Ieee802154Phy::registerBattery()

Behrouz Seyedi

unread,
Apr 13, 2012, 12:20:01 PM4/13/12
to omn...@googlegroups.com
you must add this parameters in omnetpp.ini

for example:

**.usage_radio_idle = 2mA
**.usage_radio_recv = 3mA
**.usage_radio_send = 4mA
**.usage_radio_sleep = 1mA
for more information see: Radio.ned

Manojkumar Annamraju

unread,
Apr 13, 2012, 2:55:04 PM4/13/12
to omn...@googlegroups.com
hi Behrouz Seyedi ,

after adding these parameters theenergy is reducedor not

Behrouz Seyedi

unread,
Apr 14, 2012, 3:01:15 AM4/14/12
to omn...@googlegroups.com
I added this parameters in omnetpp.ini and it works. my simulation time is 100 seconds.

**.battery.nominal = 950
**.battery.capacity = 950
**.battery.voltage = 3.6
**.battery.resolution = 1s
**.battery.publishDelta = 0.05
**.battery.publishTime = 1s
**.battery.ConsumedVector = true

**.usage_radio_idle = 216mA
**.usage_radio_recv = 260mA
**.usage_radio_send = 375mA
**.usage_radio_sleep = 9mA

my adhochost.ned sources is:
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
//

package inet.nodes.inet;

import inet.battery.models.InetSimpleBattery;
import inet.networklayer.IManetRouting;


//
// A wireless host containing routing, mobility and battery components.
// Supports only IPv4 protocol, TCP and UDP as transport protocol.
// This is a typical mobile node which can participate in adhoc routing
// and may have TCP/UDP applications installed. Supports ICMP (ping) too.
//
// - By default contains a single wireless cards, however it can be configured
//   by the numRadios parameter. Wirless card type is configured by the
//   **.wlan.typename parameter. see:  inet.linklayer.ieee80211 or other
//   modules implementing ~IWirelessNic
// - Node mobility can be set using **.mobility.typename
//   see: inet.mobility and ~IMobility
//
module AdhocHost extends WirelessHost
{
    parameters:
        @display("i=device/cellphone");
        wlan[*].mgmtType = default("Ieee80211MgmtAdhoc");  // use adhoc management
        string routingProtocol @enum("AODVUU","DYMOUM","DYMO","DSRUU","OLSR","OLSR_ETX","DSDV_2","Batman") = default("");  // used mobile routing protocol. see: inet.networklayer.manetrouting
        IPForward = default(true);

    submodules:
        manetrouting: <routingProtocol> like IManetRouting if routingProtocol != "" {
            @display("p=522,307");
        }
        battery: InetSimpleBattery {
            @display("p=44,35");
        }
    connections:
        networkLayer.manetOut --> manetrouting.from_ip if routingProtocol != "";
        networkLayer.manetIn <-- manetrouting.to_ip if routingProtocol != "";
}

Manojkumar Annamraju

unread,
Apr 16, 2012, 3:54:44 AM4/16/12
to omn...@googlegroups.com
i checked with these parameters  ,but the residual capacity is always constant...............can you send the  all .ini parameters.pls........



}

--

Behrouz Seyedi

unread,
Apr 16, 2012, 11:26:51 AM4/16/12
to omn...@googlegroups.com
some parameters is specific to my symulation!
omnetpp.ini

Manojkumar Annamraju

unread,
Apr 17, 2012, 2:39:23 AM4/17/12
to omn...@googlegroups.com
Hi,
      i checked your .ini file and changed my .ini file.eventhough i am still getting constant residual capacity.i am sending my files can you check if u dont mine ,pls is there any problem can u tell me .....................

my ned file
.........................
package finalolsrloadbalancing.simulations;
@license(LGPL);
import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator;
import inet.nodes.inet.AdhocHost;
import inet.world.radio.ChannelControl;
network Net80211_olsrmodulenew1
{
    parameters:
        int numHosts;
       submodules:
          host[numHosts]: AdhocHost {
            parameters:
                @display("i=device/pocketpc_s;r=,,#707070");
        }
        channelControl: ChannelControl {
            parameters:
                @display("p=60,50;i=misc/sun");
        }
        configurator: FlatNetworkConfigurator {
            parameters:
                networkAddress = "145.236.0.0";
                netmask = "255.255.0.0";
                @display("p=140,50;i=block/cogwheel_s");
        }
    connections allowunconnected:
}

my adhochost .ned
................................
package inet.nodes.inet;
import inet.battery.models.InetSimpleBattery;
import inet.networklayer.IManetRouting;
module AdhocHost extends WirelessHost
{
    parameters:
        @display("i=device/cellphone");
         wlan[*].mgmtType = default("Ieee80211MgmtAdhoc");  // use adhoc management 
        string routingProtocol @enum("AODVUU","DYMOUM","DYMO","DSRUU","OLSR","OLSR_ETX","DSDV_2","Batman") = default("");  // used mobile routing protocol. see: inet.networklayer.manetrouting
        IPForward = default(true);
       submodules:
        manetrouting: <routingProtocol> like IManetRouting if routingProtocol != "" {
            @display("p=522,307");
        }
        inetSimpleBattery: InetSimpleBattery {
            @display("p=71,46");
        }
    connections:
        networkLayer.manetOut --> manetrouting.from_ip if routingProtocol != "";
        networkLayer.manetIn <-- manetrouting.to_ip if routingProtocol != "";
}


my omnet.ini
........................................
[General]

network = Net80211_olsrmodulenew1
cmdenv-status-frequency = 50s
eventlog-file = ${resultdir}/${configname}-${runnumber}.elog
record-eventlog = true
sim-time-limit = 100s
#seed-0-mt = 5


#cmdenv-express-mode = true
snapshot-file = ${resultdir}/${configname}-${runnumber}.sna
tkenv-plugin-path = ../../../etc/plugins
**.drawCoverage=true
**.constraintAreaMinX = 0m
**.constraintAreaMinY = 0m
**.constraintAreaMinZ = 0m
**.constraintAreaMaxX = 1000m
**.constraintAreaMaxY = 1000m
**.constraintAreaMaxZ = 0m

*.numHosts = 5
**.arp.globalARP = true

# mobility
**.mobility.initFromDisplayString = false

**.host[0].mobility.initialX = 1m
**.host[0].mobility.initialY = 1m


**.host*.mobilityType = "StationaryMobility"

# udp apps (on)
**.host[0].numUdpApps = 1
**.host[*].udpApp[*].typename = "UDPBasicBurst"

**.udpApp[0].destAddresses = "host[0]"
**.udpApp[0].localPort = 1234
**.udpApp[0].destPort = 1234
**.udpApp[0].messageLength = 512B  # 
#**.udpApp[0].messageLength = 2000B  #
#**.udpApp[0].sendInterval = 0.2s + uniform(-0.001s,0.001s)
**.udpApp[0].sendInterval = 0.25s + uniform(-0.001s,0.001s)
**.udpApp[0].burstDuration = 0
**.udpApp[0].chooseDestAddrMode = "perBurst"
**.udpApp[0].sleepDuration = 1s
# **.udpApp[0].burstDuration = uniform(1s,4s,1)
# **.udpApp[0].stopTime = uniform(20s,40s,1)
**.udpApp[0].stopTime = 0s
##**.udpApp[0].startTime = uniform(0s,4s,1)
**.udpApp[0].startTime = 0s
**.udpApp[0].delayLimit = 20s
**.udpApp[0].destAddrRNG = 0



# ip settings
**.ip.procDelay = 10us
# **.IPForward=false


######################################################################
# manet routing
**.routingProtocol = "OLSR"
#######################################################
#**.llfeedback = true
# nic settings
**.wlan*.typename="Ieee80211NewNic"
**.wlan*.opMode="g"
**.wlan*.mac.EDCA = false
**.wlan*.mgmt.frameCapacity = 10
**.wlan*.mac.maxQueueSize = 14
**.wlan*.mac.rtsThresholdBytes = 3000B
**.wlan*.mac.bitrate = 54Mbps
**.wlan*.mac.basicBitrate = 6Mbps  # 24Mbps
**.wlan*.mac.retryLimit = 7
**.wlan*.mac.cwMinData = 31
#**.wlan*.mac.cwMinBroadcast = 31

# channel physical parameters
*.channelControl.pMax = 2.0mW

**.wlan*.radio.transmitterPower=2.0mW
**.wlan*.radio.bitrate=54Mbps
**.wlan*.radio.sensitivity=-90dBm  
#**.wlan*.radio.berTableFile="per_table_80211g_Trivellato.dat"


#**.broadCastDelay=uniform(0s,0.005s)
**.manetrouting.OLSR_HELLO_INTERVAL = 2s
**.manetrouting.OLSR_TC_INTERVAL = 5s
**.manetrouting.OLSR_MID_INTERVAL = 5s
**.manetrouting.OLSR_REFRESH_INTERVAL = 2s
**.inetSimpleBattery.nominal = 950
**.inetSimpleBattery.capacity = 950
**.inetSimpleBattery.voltage = 3.6
**.inetSimpleBattery.resolution = 10s 
**.inetSimpleBattery.publishDelta = 1
**.inetSimpleBattery.publishTime = 10s
**.inetSimpleBattery.ConsumedVector = true
**.radio.usage_radio_idle = 216mA
**.radio.usage_radio_recv = 260mA
**.radio.usage_radio_sleep = 9mA
**.radio.usage_radio_send = 375mA


On Mon, Apr 16, 2012 at 8:56 PM, Behrouz Seyedi <behrouz...@gmail.com> wrote:
some parameters is specific to my symulation!

Manojkumar Annamraju

unread,
Apr 17, 2012, 2:42:10 AM4/17/12
to omn...@googlegroups.com
hi alfonso, 
   
      i changed my .ini file.eventhough i am still getting constant residual capacity.i am sending my files can you check if u dont mine ,pls is there any problem can u tell me .....................

Behrouz Seyedi

unread,
Apr 17, 2012, 4:06:17 AM4/17/12
to omn...@googlegroups.com
I'm sorry I can't help you anymore.
alfonso can resolve your problem :)

Manojkumar Annamraju

unread,
Apr 17, 2012, 5:09:06 AM4/17/12
to omn...@googlegroups.com
thank u

On Tue, Apr 17, 2012 at 1:36 PM, Behrouz Seyedi <behrouz...@gmail.com> wrote:
I'm sorry I can't help you anymore.
alfonso can resolve your problem :)

Alfonso Ariza Quintana

unread,
Apr 17, 2012, 11:25:02 AM4/17/12
to omn...@googlegroups.com

I have tested the battery in inetmanet-2.0 and it run, it's necessary to include in the ini file
**.batteryType = "InetSimpleBattery"
**.usage_radio_idle = 1mA
**.usage_radio_recv = 2mA
**.usage_radio_sleep = 0mA
**.usage_radio_send = 2mA
or the values of consume that you want

Date: Tue, 17 Apr 2012 01:06:17 -0700
From: behrouz...@gmail.com
To: omn...@googlegroups.com

Subject: Re: [Omnetpp-l] loadbalncing in olsr

I'm sorry I can't help you anymore.
alfonso can resolve your problem :)

Manojkumar Annamraju

unread,
Apr 18, 2012, 1:12:52 AM4/18/12
to omn...@googlegroups.com
hi alfonso,
                thanks for reply i already included in .ini file.then also i am getting constant residualcapacity value.alfonso,in adhoc node i am getting warning  'wlan[*].mgmtType': undefined parameter' . i am sending my .ini and .ned files ............

**.radio.usage_radio_idle = 1mA
**.radio.usage_radio_recv = 2mA
**.radio.usage_radio_sleep = 0mA
**.radio.usage_radio_send = 2mA

Alfonso Ariza Quintana

unread,
Apr 18, 2012, 6:17:17 AM4/18/12
to omn...@googlegroups.com


I can't reproduce your problem, I have run the example net80211_aodv with a battery module and with a consume in the radio module and I have obtained this graphics for the consume battery.



Date: Wed, 18 Apr 2012 10:42:52 +0530

Subject: Re: [Omnetpp-l] loadbalncing in olsr
General.jpg

Manojkumar Annamraju

unread,
Apr 18, 2012, 6:19:08 AM4/18/12
to omn...@googlegroups.com
ok thanku alfonso.....................

Manojkumar Annamraju

unread,
Apr 19, 2012, 6:09:10 AM4/19/12
to omn...@googlegroups.com
hi  syed,
                which inetmanet version r u used,i am using all types of routing protocols......

On Tue, Apr 17, 2012 at 1:36 PM, Behrouz Seyedi <behrouz...@gmail.com> wrote:
I'm sorry I can't help you anymore.
alfonso can resolve your problem :)

Behrouz Seyedi

unread,
Apr 19, 2012, 12:08:27 PM4/19/12
to omn...@googlegroups.com
I use inetmanet github commit 395bad8....
and omnet 4.2.2

Manojkumar Annamraju

unread,
Apr 20, 2012, 5:27:25 AM4/20/12
to omn...@googlegroups.com
hi i am using inetmanet 2.0 acb2cbf.....,this is the old version how can i update with the new commit thing .pls can you tell me the procedure  to make my old inetmanet 2.0 with the new commits ...................pls..........................

On Thu, Apr 19, 2012 at 9:38 PM, Behrouz Seyedi <behrouz...@gmail.com> wrote:
I use inetmanet github commit 395bad8....
and omnet 4.2.2

Behrouz Seyedi

unread,
Apr 20, 2012, 11:37:26 AM4/20/12
to omn...@googlegroups.com
you can download new version from: https://github.com/aarizaq/inetmanet-2.0

Alfonso Ariza Quintana

unread,
Apr 20, 2012, 5:24:05 PM4/20/12
to omn...@googlegroups.com
you need to have installed the git tool


Date: Fri, 20 Apr 2012 14:57:25 +0530

Subject: Re: [Omnetpp-l] loadbalncing in olsr
From: manoj8a...@gmail.com
To: omn...@googlegroups.com

Message has been deleted

Alfonso Ariza Quintana

unread,
Jun 3, 2012, 6:20:00 PM6/3/12
to omn...@googlegroups.com
you need to modify the AODV protocol, the RREQ and RREP messages, the messages must carry the information about the energy


Date: Sun, 3 Jun 2012 15:15:18 -0700
From: nasri.ma...@gmail.com
To: omn...@googlegroups.com
Subject: Re: FW: [Omnetpp-l] loadbalncing in olsr

Dear Alfonso,  
what i must add to have this resalte. I want to incorporate energy as the metric in the AODV protocol.
 my file omnetpp.ini is:

[General]
#debug-on-errors = true
sim-time-limit = 500s
seed-0-mt = 5
network = inet.examples.adhoc.net80211_aodv.Net80211_aodv

cmdenv-express-mode = true
tkenv-plugin-path = ../../../etc/plugins

description = "Aodv Simple test"

*.playgroundSizeX = 1000
*.playgroundSizeY = 1000
*.numFixHosts = 1
*.numHosts = 15

# mobility
**.fixhost[0].mobility.x = 999
**.fixhost[0].mobility.y = 999

**.host[0].mobility.x = 1
**.host[0].mobility.y = 1

**.host[*].mobility.x = -1
**.host[*].mobility.y = -1

**.host*.mobilityType = "inet.mobility.MassMobility"

**. Hôte *. ChangeInterval = uniformes (1s, 30s) 
**. Hôte *. ChangeAngleBy = uniforme (0deg, 50deg) 






# udp apps (on)
**.host[*].udpAppType = "UDPBasicBurst"
**.host[0].numUdpApps = 1

**.udpApp[0].destAddresses = "fixhost[0]"
**.udpApp[0].localPort = 1234
**.udpApp[0].destPort = 1234
**.udpApp[0].messageLength = 512B  # 
**.udpApp[0].messageFreq = 0.2s
**.udpApp[0].message_freq_jitter = uniform(-0.001s,0.001s)
**.udpApp[0].burstDuration = 0
**.udpApp[0].activeBurst=true
# **.udpApp[0].burstDuration = uniform(1s,4s,1)
# **.udpApp[0].time_off = uniform(20s,40s,1)
**.udpApp[0].time_off = 0s
**.udpApp[0].time_end = 0s
##**.udpApp[0].time_begin =uniform(0s,4s,1)
**.udpApp[0].time_begin = 10s
**.udpApp[0].limitDelay = 20s
**.udpApp[0].rand_generator = 0

**.fixhost[0].udpAppType = "UDPSink"
**.fixhost[0].numUdpApps = 1
**.fixhost[0].udpApp[0].localPort = 1234
**.fixhost[0].x=-1
**.fixhost[0].y=-1

# tcp apps (off)
**.numTcpApps = 0
**.tcpAppType = "TelnetApp"

# ping app (host[0] pinged by others)
# ping app (off)
**.pingApp.count = 0
**.pingApp.startTime = 1s
**.pingApp.stopTime = 0
**.pingApp.printPing = true

# tcp settings
**.tcp.mss = 1024
**.tcp.advertisedWindow = 14336  # 14*mss
**.tcp.sendQueueClass = "TCPMsgBasedSendQueue"
**.tcp.receiveQueueClass = "TCPMsgBasedRcvQueue"
**.tcp.tcpAlgorithmClass = "TCPReno"
**.tcp.recordStats = true

# ip settings
**.ip.procDelay = 10us
# **.IPForward=false


######################################################################
# manet routing
**.manetrouting.manetmanager.routingProtocol = "AODV"
#######################################################

# nic settings
**.wlan.mgmt.frameCapacity = 10
**.wlan.mac.maxQueueSize = 14
**.wlan.mac.rtsThresholdBytes = 3000B
**.wlan.mac.bitrate = 54Mbps
**.wlan.mac.basicBitrate = 6Mbps  # 24Mbps
**.wlan.mac.retryLimit = 7
**.wlan.mac.cwMinData = 31
**.wlan.mac.cwMinBroadcast = 31

# channel physical parameters
*.channelcontrol.pMax = 2.0mW

**.wlan.radio.transmitterPower=2.0mW
**.wlan.radio.bitrate=54Mbps
**.wlan.radio.sensitivity=-90dBm  
**.wlan.radio.berTableFile="per_table_80211g_Trivellato.dat"


**.broadCastDelay=uniform(0s,0.005s)

**.batteryType = "InetSimpleBattery"

**.battery.nominal = 950
**.battery.capacity = 950
**.battery.voltage = 3.6
**.battery.resolution = 1s
**.battery.publishDelta = 0.05
**.battery.publishTime = 1s
**.battery.ConsumedVector = true
**.battery.Consumedscalars = true

**.usage_radio_idle = 216mA
**.usage_radio_recv = 260mA
**.usage_radio_send = 375mA
**.usage_radio_sleep = 9mA
**.usage_radio_rreq_send = 260mA


**.wait_on_reboot = 0

whate i muste add olso.
pliiiiiiiiiiiize help me
thanks you

Alexandre Sales Vasconcelos

unread,
Sep 14, 2012, 12:31:42 PM9/14/12
to omn...@googlegroups.com, aari...@hotmail.com
Hi Alfonso, I tried adding the lines you recommended, but I'm having some problems:

When I try to put the line:

**. BatteryType = "InetSimpleBattery"

a warning is generated

Unused entry (does not match any parameters)

I'm using Omnet 4.2.2 with the newest version of INET 2.0.0, running the example net80211_aodv.

The only result achieved on energy are:

For the simulation time of 300s

running in Express mode ... ...
<!> Simulation Team Limit Reached - simulation stopped at event # 1719864, t = 300.
** Calling finish () methods of modules
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08

For the simulation time of 600s

running in Express mode ... ...
<!> Simulation Team Limit Reached - simulation stopped at event # 3483640, t = 600.
** Calling finish () methods of modules
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08
Flushed 0 packets
residual capacity = 1.6416e 08

in both results have the same "residual capacity"

It was also not recorded any consumption information in the files of vector and scalar

Someone already got some runs in this new example versção INET 2.0.0 that has correctly calculated the energy consumption?

[] s
Alexandre
Message has been deleted
Message has been deleted
Message has been deleted

Sh Asaadi

unread,
Apr 6, 2014, 12:42:08 PM4/6/14
to omn...@googlegroups.com, aari...@hotmail.com
Hi, could you please tell me how to access the residual battery of the node processing msg in rreq_process (in net80211_aodv)?
thanks

Sh Asaadi

unread,
Apr 7, 2014, 7:37:45 AM4/7/14
to omn...@googlegroups.com, aari...@hotmail.com
Hi dear Alfonso. I have 2 questions important to me, could you please answer me.

1) Could you please tell me how to access the residual battery of the node, processing msg, in rreq_process (the code statement in net80211_aodv)? 

2) How to find neighbors that are in the transmission range of a node? I want to add this neighbors in a table and associate a trust value to each neighbor. how to find the neighbors?

Many Thanks

Alfonso Ariza Quintana

unread,
Apr 7, 2014, 1:45:38 PM4/7/14
to omn...@googlegroups.com

 

BasicBattery *bt = BatteryAccess().get();

bt->GetEnergy()

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alfonso Ariza Quintana

unread,
Apr 7, 2014, 1:47:12 PM4/7/14
to omn...@googlegroups.com

The neighbors nodes list is a bit more complex, you need to run the hello protocol and extract from the routing table nodes that the distance is 1 hop

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Sh Asaadi


Enviado el: lunes, 07 de abril de 2014 13:38

--

Shima Asaadi

unread,
Apr 7, 2014, 3:07:47 PM4/7/14
to omn...@googlegroups.com, aari...@hotmail.com
Thank you Alfonso.
If possible please tell a little about how to use hello protocol? or if there is an example in inet framework using hello protocol let me know please.
Thank u.


--
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/BDPlYlhrR5I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best Regards,
Shima Asaadi,
Tehran Polytechnic, Iran

Shima Asaadi

unread,
Apr 8, 2014, 2:38:14 AM4/8/14
to omn...@googlegroups.com, aari...@hotmail.com
Dear Alfonso,
i have added **.llfeedback=false
and **.optimized_hellos=false.

Now how to use hello protocol to determine 1 hop neighbrs? could you please explain a little? and where to change the code?
Thanks

Alfonso Ariza Quintana

unread,
Apr 8, 2014, 1:26:39 PM4/8/14
to omn...@googlegroups.com

The hello protocol will include all the nodes to 1 hop in the routing table

Shima Asaadi

unread,
Apr 8, 2014, 1:34:07 PM4/8/14
to omn...@googlegroups.com
Thanku Alfonso, I got it.

mento...@gmail.com

unread,
May 8, 2016, 11:54:49 AM5/8/16
to OMNeT++ Users
Do you know how to find one hop and two hop neighbors of a node?

Alfonso Ariza Quintana

unread,
May 8, 2016, 6:04:45 PM5/8/16
to omn...@googlegroups.com

I recommend to study the hello protocol of OLSR protocol, this hello allows to discover 2 hops nodes, the idea is to include the list of nodes that the node has listened a hello message in his hello messages, with this it is possible to discover 1 and 2 hops nodes


Date: Sun, 8 May 2016 08:54:49 -0700
From: mento...@gmail.com
To: omn...@googlegroups.com
Subject: Re: [Omnetpp-l] loadbalncing in olsr
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.

mento...@gmail.com

unread,
May 9, 2016, 8:11:42 AM5/9/16
to OMNeT++ Users, aari...@hotmail.com

How should i use OLSR protocol for finding neighbors in omnet++ 4.6?

Alfonso Ariza Quintana

unread,
May 11, 2016, 4:11:58 AM5/11/16
to omn...@googlegroups.com

Inetmanet has included the OLSR protocol

mento...@gmail.com

unread,
May 24, 2016, 12:35:26 PM5/24/16
to OMNeT++ Users, aari...@hotmail.com
Will you please write down the code for finding the one hop and two hop neighbors?
and suggest me a good book or tutorial for learning omnet++ for node scheduling in adhoc networks. It will be a huge favor.

Alfonso Ariza Quintana

unread,
May 26, 2016, 5:00:55 AM5/26/16
to omn...@googlegroups.com

    populate_nbset(msg);

    populate_nb2hopset(msg);

mento...@gmail.com

unread,
Jun 6, 2016, 7:52:45 AM6/6/16
to OMNeT++ Users, aari...@hotmail.com
Thank you Alfonso. It works I am able to find one hop and two hop neighbors.
I have to work at TDMA base MAC layer for node scheduling. Does OLSR work with TDMA?

Alfonso Ariza Quintana

unread,
Jun 8, 2016, 8:44:07 AM6/8/16
to omn...@googlegroups.com

OLSR is a network layer protocol, it is independent of the link layer technology

Reply all
Reply to author
Forward
0 new messages