Google Groups

Re: [Omnetpp-l] loadbalncing in olsr


Manojkumar Annamraju Apr 16, 2012 11:39 PM
Posted in group: OMNeT++ Users
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!

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