1 Star 0 Fork 0

xingchigang/WiFi-MATLAB-Simulator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
RunSims.m 2.91 KB
一键复制 编辑 原始数据 按行查看 历史
Lilach99 提交于 2020-06-12 17:41 . Add files via upload
import mlreportgen.dom.*;
% run a bunch of simulations - 30 simulations, 60 seconds each, different
% STs, 10-100 km links, CBR 1460B packets
% linkLens = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]; % in kms!
% for i=1:30
% % 24.5.20 - with packets aggregation !!!
% simulateDifferentSTsInDataRate(0.1, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(0.5, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(1, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(1.5, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(2, pktPolicy.CBR, linkLens);
% % simulateDifferentSTsInDataRate(3, pktPolicy.CBR, linkLens);
% % simulateDifferentSTsInDataRate(4, pktPolicy.CBR, linkLens);
% end
% % now random sized packets VS the mean packet size:
% for i=1:30
% simulateDifferentSTsInDataRate(1, pktPolicy.RAND, linkLens);
% simulateDifferentSTsInDataRate(2, pktPolicy.RAND, linkLens);
% end
%
% % the "limit" distances 100m to 10km (15 values total):
% linkLens = [0.1, 0.5, 1, 1.35, 1.5, 2, 2.5, 3, 4, 5, 6, 7, 8, 9, 10];
% for i=1:22
% simulateDifferentSTsInDataRate(0.5, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(1, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(2, pktPolicy.CBR, linkLens);
% end
%
% % now random sized packets VS the mean packet size:
% for i=1:22
% simulateDifferentSTsInDataRate(0.5, pktPolicy.RAND, linkLens);
% simulateDifferentSTsInDataRate(1, pktPolicy.RAND, linkLens);
% simulateDifferentSTsInDataRate(2, pktPolicy.RAND, linkLens);
% end
% % now change "pktLen" in "getPacketLength" function to 1050 (mean) and
% % also change in line 38 in simulateDifferentSTsBunchInDataRate 1460 to 1050
% % and then run:
% linkLens = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]; % in kms!
% for i=1:30
% simulateDifferentSTsInDataRate(1, pktPolicy.CBR, linkLens);
% simulateDifferentSTsInDataRate(3, pktPolicy.CBR, linkLens);
% end
% % packet aggregation experiment:
% % 1km-3km:
% linkLens = [1, 2, 3, 4]; % in kms!
% simulateMultOfStandardST(1, pktPolicy.CBR, linkLens, 1); % last parameter is STFactor
% % now 10km-30km, cahnge SIFS
% linkLens = [10, 20, 30, 40]; % in kms!
% simulateMultOfStandardST(1, pktPolicy.CBR, linkLens, 10);
% different aggregation factors experiments, in 100km:
aggFactors = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30];
for i=1:30
simulateDifferentAggregationFactors(1, pktPolicy.CBR, aggFactors, 100);
simulateDifferentAggregationFactors(1.5, pktPolicy.CBR, aggFactors, 100);
simulateDifferentAggregationFactors(2, pktPolicy.CBR, aggFactors, 100);
end
% and in 50km:
for i=1:30
simulateDifferentAggregationFactors(1, pktPolicy.CBR, aggFactors, 50);
simulateDifferentAggregationFactors(1.5, pktPolicy.CBR, aggFactors, 50);
simulateDifferentAggregationFactors(2, pktPolicy.CBR, aggFactors, 50);
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingchigang/WiFi-MATLAB-Simulator.git
git@gitee.com:xingchigang/WiFi-MATLAB-Simulator.git
xingchigang
WiFi-MATLAB-Simulator
WiFi-MATLAB-Simulator
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385