代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。