⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 omnetpp.ini

📁 基于omnet++开发的Mf框架下的802.11协议仿真。
💻 INI
字号:
[General]
ini-warnings = true
network = AsyncSim
#random-seed = 23
#sim-time-limit = 100s

[Tkenv]
bitmap-path="../../bitmaps"
default-run=1
use-mainwindow = yes
print-banners = yes
slowexec-delay = 300ms
update-freq-fast = 10
update-freq-express = 100
breakpoints-enabled = yes

[Cmdenv]
runs-to-execute = 1
event-banners = yes
module-messages = no 
;verbose-simulation = no
verbose-simulation = yes

[DisplayStrings]


[Parameters]



##############################################################################
#       Parameters for the entire simulation                                 #
##############################################################################

# playgroundsize of the hosts
AsyncSim.playgroundSizeX = 300
AsyncSim.playgroundSizeY = 300

# number of hosts in the network
AsyncSim.numHosts =200

# uncomment to enable debug messages for all modules
;**.debug = true

**.coreDebug = 0


##############################################################################
#       Parameters for the ChannelControl                                    #
##############################################################################
AsyncSim.channelcontrol.carrierFrequency = 2.4E+9

# max transmission power [mW]
AsyncSim.channelcontrol.pMax  = 25.0

#----------------------------------------------------------------------#
#  signal attenuation threshold [dBm]: to computer max interfDistance  #
#  interfDistance is a little longer than efficient comm distance= 67m #
#----------------------------------------------------------------------#
AsyncSim.channelcontrol.sat   = -75.0

# path loss coefficient alpha
AsyncSim.channelcontrol.alpha = 3.0

##############################################################################
#       Parameters for the Mobility Module                                   #
##############################################################################
# debug switch
AsyncSim.host[*].mobility.debug = false

# starting position for the hosts "-1" means random staring point
AsyncSim.host[0].mobility.x=299
AsyncSim.host[0].mobility.y=0
AsyncSim.host[*].mobility.x=-1
AsyncSim.host[*].mobility.y=-1




##############################################################################
#       Parameters for the Host                                              #
##############################################################################
AsyncSim.host[*].color = "white"
AsyncSim.host[*].appendDisplay = "b=20,20,oval;o=blue,black,2"

#-----------for AsyncApplLayer---------#
AsyncSim.host[*].applLayer = "AsyncApplLayer"

##############################################################################
#       Parameters for the Application Layer                                 #
##############################################################################

# debug switch
AsyncSim.host[*].appl.debug = true
AsyncSim.host[*].appl.headerLength=320; 
AsyncSim.host[*].appl.iaitime=uniform(5s,80s); //msg inter-arrival period
AsyncSim.host[*].appl.maxNumBurst=30; // max burst pkt number
AsyncSim.host[*].appl.release_time=30;
AsyncSim.host[*].appl.limit=1;
AsyncSim.host[*].appl.nodeNum = 200;//the number of nodes
#-----------for ShortestApplLayer---------#
AsyncSim.host[*].appl.destAddress=0
AsyncSim.host[*].appl.sourceAddress=10
AsyncSim.host[*].appl.energe_wt=6.03;//nJ
AsyncSim.host[*].appl.energe_cd=6.03;//nJ
AsyncSim.host[*].appl.start=uniform(1,5)

##############################################################################
#       Parameters for the Network Layer                                     #
##############################################################################

# debug switch
AsyncSim.host[*].net.debug = true
AsyncSim.host[*].net.headerLength=12; in bits
AsyncSim.host[*].net.minLine=0.8
AsyncSim.host[*].net.clusterHead=9
AsyncSim.host[*].net.gridLength = 300;   //the length of region
AsyncSim.host[*].net.gridWidth = 300;    //the width of region
AsyncSim.host[*].net.nodenum=200
AsyncSim.host[*].net.numCluster =3;//the number of grids each row
AsyncSim.host[*].net.round=10000;s
##############################################################################
#       Parameters for the MAC Layer                                         #
##############################################################################

AsyncSim.host[*].nic.mac.debug = true
AsyncSim.host[*].nic.mac.headerLength=12
AsyncSim.host[*].nic.mac.rxEnergy=0.4
AsyncSim.host[*].nic.mac.txEnergy=25.0; [mW]
AsyncSim.host[*].nic.mac.sleepEnergy=0.05

AsyncSim.host[*].nic.mac.groupSize=2
AsyncSim.host[*].nic.mac.retryLimit=0;//重发上限
#10% is the ratio of active time to total frame length
AsyncSim.host[*].nic.mac.activeTime=0s
AsyncSim.host[*].nic.mac.sleepTime=0s

###########################################
AsyncSim.host[*].nic.mac.roundTime=5s; //round time
AsyncSim.host[*].nic.mac.dutyCycle=0.01;//duty cycle

#select wakeup moment parameter
AsyncSim.host[*].nic.mac.alfa=0.2; //alfa parameter

AsyncSim.host[*].nic.mac.delayIntTime=0.0s
AsyncSim.host[*].nic.mac.frameCapacity=400
AsyncSim.host[*].nic.mac.bitrate=2E+4; in bits/second



##############################################################################
#       Parameters for the Decider                                           #
##############################################################################

# debug switch
AsyncSim.host[*].nic.decider.debug = true
AsyncSim.host[*].nic.decider.snrThresholdLevel=2


##############################################################################
#       Parameters for the SnrEval                                           #
##############################################################################

##########################
#  snr=sound-noise ratio #
##########################

# debug switch
AsyncSim.host[*].nic.snrEval.debug = true

AsyncSim.host[*].nic.snrEval.headerLength=12
AsyncSim.host[*].nic.snrEval.bitrate=2E+4; in bits/second
AsyncSim.host[*].nic.decider.bitrate=2E+4; in bits/second
AsyncSim.host[*].nic.snrEval.transmitterPower=25.0; [mW]
AsyncSim.host[*].nic.snrEval.carrierFrequency=2.4E+9

#initial noiseLevel:should less than sensitivity 
AsyncSim.host[*].nic.snrEval.thermalNoise=-130.0

#MICA2 sensitivity: efficient communication distance is about 62m
AsyncSim.host[*].nic.snrEval.sensitivity=-80.0
AsyncSim.host[*].nic.snrEval.pathLossAlpha=2.0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -