Bug 2465 - Microwave oven model has overlapping subbands
Microwave oven model has overlapping subbands
Status: NEW
Product: ns-3
Classification: Unclassified
Component: spectrum
All All
: P5 normal
Assigned To: Nicola Baldo
Depends on:
  Show dependency treegraph
Reported: 2016-08-06 20:25 EDT by Alexander Krotov
Modified: 2016-08-06 20:35 EDT (History)
1 user (show)

See Also:

Test scenario (2.47 KB, text/x-c++src)
2016-08-06 20:25 EDT, Alexander Krotov
Gnuplot script to plot test scenario results (248 bytes, text/plain)
2016-08-06 20:27 EDT, Alexander Krotov
Result plot before patch (6.61 KB, image/png)
2016-08-06 20:28 EDT, Alexander Krotov
Result plot after patch (6.56 KB, image/png)
2016-08-06 20:29 EDT, Alexander Krotov
Proposed patch (1.09 KB, patch)
2016-08-06 20:31 EDT, Alexander Krotov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Krotov 2016-08-06 20:25:33 EDT
Created attachment 2519 [details]
Test scenario

MicrowaveOvenSpectrumModel5MhzInitializer and MicrowaveOvenSpectrumModel6MhzInitializer create subbands with distance of 5Mhz and 6MHz respectively. The problem is that they are 10Mhz and 12Mhz wide, while they should be 5Mhz and 6Mhz wide so they don't overlap.

This results in 3dB (2 times) difference: each subband contributes its PSD twice.

Attached is a scenario (simplified spectrum example with ALOHA etc. removed) that places microwave oven and spectrum analyzer in the same point in space. Plots and patch follow.
Comment 1 Alexander Krotov 2016-08-06 20:27:57 EDT
Created attachment 2520 [details]
Gnuplot script to plot test scenario results

Script plots PSD in dBm so it can be compared to PSD in the article "Microwave oven signal modeling" referenced in source code.
Comment 2 Alexander Krotov 2016-08-06 20:28:45 EDT
Created attachment 2521 [details]
Result plot before patch
Comment 3 Alexander Krotov 2016-08-06 20:29:37 EDT
Created attachment 2522 [details]
Result plot after patch
Comment 4 Alexander Krotov 2016-08-06 20:31:26 EDT
Created attachment 2523 [details]
Proposed patch
Comment 5 Alexander Krotov 2016-08-06 20:35:12 EDT
Note that plot has narrower range than plot in the article, but you can compare the value on the center frequency (2.42 Ghz in Fig. 3) or change the model of spectrum analyzer to cover the whole range of frequencies.