LTE Module User Documentation(翻译4)—— 使用 Fading Trace

时间:2023-03-08 21:56:34

LTE用户文档

(如有不当的地方,欢迎指正!)

7 使用 Fading Trace

本节描述如何在 LTE 仿真中使用 fading traces 。
(1)生成 Fading Traces 
通过使用专用的 matlab 脚本 (/lte/model/fading-traces/fading-trace-generator.m)提供的代码生成 fading traces 。该脚本包含典型的 taps 配置,用于 3 种 3GPP 场景(例如,行人、车辆和城市,定义在 Annex B.2 of [TS36104] 中);然而,用户也可以引进它们特定的配置。可配置的参数如下:
  • fc : 使用的频率(影响多普勒速度的计算)
  • v_km_h : 用户的速度;
  • traceDuration : trace 总长度的持续时间(s);
  • numRBs : 要估计的资源块的数目;
  • tag : 应用到生成文件的标签;
生成的文件包含 ASCII 格式的实际值,为矩阵形式:每一行与不同的 RB 有关,每一列与不同的临时 fading trace 样本有关。
注意, ns-3 LTE 模块能够使用任何 fading trace 文件工作,符合上述描述的 ASCII 格式。因此,其他的外部工具也可以用于生成自定义的 fading traces,例如其他的仿真器或实验设备。
(2)使用 Fading Traces 
当使用 fading trace 文件时,在仿真中指定合适的 trace 参数很重要,因此 fading 模型可以加载并正确地使用它。配置的参数如下:
  • TraceFilename : 要加载的 trace 文件的文件名(绝对路径或相对路径);
  • TraceLength : trace 持续时间(s);
  • SamplesNum : 样本数目;
  • WindowSize : fading 样本窗口的大小;
注意,fading trace 的样本间隔必须至少为 1 ms ,且为1 ms 的整数倍,以便正确处理 fading 模块。
matlab 脚本默认配置提供 trace 持续时间 10 s,由 10,000 个样本数组成(例如,每隔 TTI=1ms 有一个样本),使用的窗口大小为0.5 秒的振幅。这些也是上述参数的默认值;因此,当 fading trace 涉及它们时,可以避免它们的 settage(?)。 
为了激活 fading 模块(默认为不激活),仿真程序中包含下列代码:
Ptr<LteHelper> lteHelper = CreateObject<LteHelper> ();
lteHelper->SetFadingModel("ns3::TraceFadingLossModel");

设置参数:

lteHelper->SetFadingModelAttribute ("TraceFilename", StringValue ("src/lte/model/fading-traces/fading_trace_EPA_3kmph.fad"));
lteHelper->SetFadingModelAttribute ("TraceLength", TimeValue (Seconds (10.0)));
lteHelper->SetFadingModelAttribute ("SamplesNum", UintegerValue ());
lteHelper->SetFadingModelAttribute ("WindowSize", TimeValue (Seconds (0.5)));
lteHelper->SetFadingModelAttribute ("RbNum", UintegerValue ());

值得注意的是, TraceFilename 并没有一个默认值,因此它必须总是明确设置。
根据定义在 Annex B.2 of [TS36104] 中的配置,仿真器自带 3 种 fading traces。这些 traces 文件在文件夹 src/lte/model/fading-traces/ 中。下图为这些 traces 的一个 excerpt 。
LTE Module User Documentation(翻译4)—— 使用 Fading Trace
LTE Module User Documentation(翻译4)—— 使用 Fading Trace

Excerpt of the fading trace included in the simulator for a pedestrian scenario (speed of 3 kmph).

LTE Module User Documentation(翻译4)—— 使用 Fading Trace

LTE Module User Documentation(翻译4)—— 使用 Fading Trace

Excerpt of the fading trace included in the simulator for a vehicular scenario (speed of 60 kmph).

LTE Module User Documentation(翻译4)—— 使用 Fading Trace
 LTE Module User Documentation(翻译4)—— 使用 Fading Trace
Excerpt of the fading trace included in the simulator for an urban scenario (speed of 3 kmph).

参考文献

https://www.nsnam.org/docs/models/html/lte-user.html