您的位置:首页 > 健康 > 养生 > 怎么在微信创建公众号_网站建站的作用_爱站网排行榜_百度投放广告联系谁

怎么在微信创建公众号_网站建站的作用_爱站网排行榜_百度投放广告联系谁

2025/8/1 2:55:29 来源:https://blog.csdn.net/Mr_liu_666/article/details/147258868  浏览:    关键词:怎么在微信创建公众号_网站建站的作用_爱站网排行榜_百度投放广告联系谁
怎么在微信创建公众号_网站建站的作用_爱站网排行榜_百度投放广告联系谁

  ns3的官方手册很全,相关书籍也是有的,官网先贴在这里:

ns-3 | a discrete-event network simulator for internet systemsa discrete-event network simulator for internet systemshttps://www.nsnam.org/相关的脚本介绍也都有一些:

ns-3.35_wifi-he-network.cc_ns-3网络仿真工具wifi脚本解析_wifi脚本网络拓扑_ns-3wifi6吞吐脚本关键注释_吞吐部分_基础ns-3_ns3.35-CSDN博客

ns-3-model-library wifi 浅析_ns-3wifi部分解析_ns-3网络模拟器wifi部分文档分析_Part1_ns3 wifiphy物理层冲突-CSDN博客

ns-3-model-library wifi 浅析_ns-3wifi部分解析_ns-3网络模拟器wifi部分文档分析_Part2_yansphy-CSDN博客

在进行wifi饱和流测试的时候我们需要指定UDP 包间隔,如下interval 

        const auto maxLoad = nLinks *EhtPhy::GetDataRate(mcs,MHz_u{static_cast<double>(width)},NanoSeconds(gi),1) /nStations;std::cout << " nLinks= " << nLinks << " nStations=" << nStations << " maxLoad=" << maxLoad << " bps" <<std::endl;if (udp){// UDP flowuint16_t port = 9;UdpServerHelper server(port);serverApp = server.Install(serverNodes.get());streamNumber += server.AssignStreams(serverNodes.get(), streamNumber);serverApp.Start(Seconds(0));serverApp.Stop(simulationTime + Seconds(1));const auto packetInterval = payloadSize * 8.0 / maxLoad;for (std::size_t i = 0; i < nStations; i++){UdpClientHelper client(serverInterfaces.GetAddress(i), port);client.SetAttribute("MaxPackets", UintegerValue(4294967295U));client.SetAttribute("Interval", TimeValue(Seconds(packetInterval)));client.SetAttribute("PacketSize", UintegerValue(payloadSize));ApplicationContainer clientApp = client.Install(clientNodes.Get(i));streamNumber += client.AssignStreams(clientNodes.Get(i), streamNumber);clientApp.Start(Seconds(1));clientApp.Stop(simulationTime + Seconds(1));}}

那么最合理的包间隔就是刚好满足上限,这样仿真更快还保证饱和,上面代码就是很好的例子,运行打印如下:

nLinks= 1 nStations=1 maxLoad=8602942 bps

根据mcs0 单流 gi 800ns,20M 带宽,我们可以作如下计算:

理论协商最大速率 = (1 * 1/2 * 1 * 234)/ (12.8 + 0.8) = 8.60294117

BPSK 1符号1bit

码率1/2

单流

子载波234个

数据时间12.8us

guard interval 0.8us

计算与函数输出一致

包长乘8就是就是一包bit数,除以最大速率就是一包用多少秒,也就是interval。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com