Omnet++ 如何计算“中的吞吐量”;吞吐量“;INET的例子?

Omnet++ 如何计算“中的吞吐量”;吞吐量“;INET的例子?,omnet++,Omnet++,我正在考虑使用Inet/omnet++来评估我们正在研究的路由算法。因为我是第一次使用这个工具,所以我执行了一些示例并阅读了源代码。 然后我找到了一个例子,它是随inet提供的,/inet/examples/wireless/throughput 问题是我没有得到相同的值 在自述文件中,可以读取: "Throughput is measured by the "sink" submodule of the AP. It is recorded into the output scalar fil

我正在考虑使用Inet/omnet++来评估我们正在研究的路由算法。因为我是第一次使用这个工具,所以我执行了一些示例并阅读了源代码。 然后我找到了一个例子,它是随inet提供的,/inet/examples/wireless/throughput

问题是我没有得到相同的值

在自述文件中,可以读取:

"Throughput is measured by the "sink" submodule of the AP. It is recorded
into the output scalar file, but can also be inspected during runtime.

The Excel sheet includes throughput measured by the simulation, and compares
it to the theoretical maximum which is roughly 5.12 Mbps (at 11 Mbps bitrate
and 1000-byte packets). The theoretical value and the simulation output
are very close, the difference being less than 1 kbps."
Timing.xls中显示了相同的值

但是,在执行模拟时,我获得了一个不同的值:846266位/秒

我是否需要执行一些额外的计算以获得吞吐量的最终值

那是虫子吗


是否由于INET中的某些修改,该值不再有效?

吞吐量的默认比特率值为1 Mbps。因此,您获得的值是正确的
要更改比特率,请在
omnetpp.ini
throughput
目录中编辑此行:

**.wlan*.bitrate=1Mbps

没错,当我使用11Mbps的比特率时,我得到了一个更接近的值。但是,它与自述文件中给出的理论值和此处提到的测量值都不够接近。我获得的值是4828849位/秒。我尝试添加
**.mac.slotTime=20us
,但这并不影响吞吐量。有什么想法吗?