2015-11-03 236 views
0

我正在考虑使用Inet/omnet ++来评估我们正在处理的路由算法。由于我第一次使用该工具,因此我正在执行一些示例并阅读源代码。 然后我找到了一个例子,它随inet/inet/examples/wireless /吞吐量一起提供。如何计算INET的“吞吐量”示例中的吞吐量?

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

自述文件一个可以读取:

"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中的某些修改,该值不再有效吗?

回答

0

throughput示例的比特率默认值为1 Mbps。所以你获得的价值是正确的。
要改变码率编辑在omnetpp.ini这一行throughput目录:
**.wlan*.bitrate = 1Mbps

+0

你说得对,我得仔细值当我使用的11Mbps的bitrare。但是,它与README文件中提供的理论值或其中提到的测量值不够接近。我获得的值是4828849比特/秒。我尝试添加'**。mac.slotTime = 20us',但它不影响吞吐量。任何想法? –