2015-11-03 234 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',但它不影響吞吐量。任何想法? –