omnetpp.ini
来自「OMNeT++ for RFID ALOHA collision protoco」· INI 代码 · 共 55 行
INI
55 行
[General]
preload-ned-files=*.ned
network=alohaNet
[Parameters]
alohaNet.numHosts=20
alohaNet.txRate=9600
alohaNet.host[*].pkLenBits=952 #=119 bytes, so that (with +1 byte guard) slotTime is a nice round number
alohaNet.host[*].radioDelay=0.01
[Run 1]
description="pure Aloha, overloaded"
# no slots
alohaNet.slotTime=0
# too frequent transmissions result in high collision rate and low channel utilization
alohaNet.host[*].iaTime=exponential(2)
[Run 2]
description="pure Aloha, optimal load"
# no slots
alohaNet.slotTime=0
# near optimal load, channel utilization is near theoretical maximum 1/2e
alohaNet.host[*].iaTime=exponential(6)
[Run 3]
description="pure Aloha, low traffic"
# no slots
alohaNet.slotTime=0
# very low traffic results in channel being idle mosy of the time
alohaNet.host[*].iaTime=exponential(30)
[Run 4]
description="slotted Aloha, overloaded"
# slotTime = pkLen/txRate = 960/9600 = 0.1s
alohaNet.slotTime=0.1s
# too frequent transmissions result in high collision rate and low channel utilization
alohaNet.host[*].iaTime=exponential(0.5)
[Run 5]
description="slotted Aloha, optimal load"
# slotTime = pkLen/txRate = 960/9600 = 0.1s
alohaNet.slotTime=0.1s
# near optimal load, channel utilization is near theoretical maximum 1/e
alohaNet.host[*].iaTime=exponential(2)
[Run 6]
description="slotted Aloha, low traffic"
# slotTime = pkLen/txRate = 960/9600 = 0.1s
alohaNet.slotTime=0.1s
# very low traffic results in channel being idle mosy of the time
alohaNet.host[*].iaTime=exponential(20)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?