📄 omnetpp.ini
字号:
[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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -