NS-3中wifi的主要层次结构

本文详细介绍了NS-3中WiFi模块的主要组成部分,包括WifiHelper、WifiNetDevice、WifiPhy、WifiMac以及各种远程站管理器。通过这些类的使用,可以模拟802.11标准的各种物理层、MAC层行为,如设置物理层模型、传输丢包模型和传输延迟模型等。此外,还涵盖了不同类型的MAC层实现,如ApWifiMac、StaWifiMac和AdhocWifiMac,以及多种率控制算法,如AarfcdWifiManager、AmrrWifiManager和MinstrelWifiManager等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

wifi

一、WifiHelper
http://www.nsnam.org/doxygen/classns3_1_1_wifi_helper.html

最高层次

主要方法:
WifiHelper ()    //实例化
void SetRemoteStationManager()    //设置远程基站
NetDeviceContainer     Install (const WifiPhyHelper &phy, const WifiMacHelper &mac, NodeContainer c) const
//设置 phy,mac,NodeContainer 物理层,MAC层,节点

二、WifiNetDevice 分别设置phy,mac
http://www.nsnam.org/doxygen/classns3_1_1_wifi_net_device.html#ab9399fa501d71c702cf0ad9c0b034460
Hold together all Wifi-related objects.This class holds together ns3::WifiChannel, ns3::WifiPhy, ns3::WifiMac, and, ns3::WifiRemoteStationManager

1. WifiChannel  继承Channel
http://www.nsnam.org/doxygen/classns3_1_1_wifi_channel.html

1.1 YansWifiChannel  继承上面的
http://www.nsnam.org/doxygen/classns3_1_1_yans_wifi_channel.html
主要方法:
Add (Ptr< YansWifiPhy > phy)    //添加物理层协议
SetPropagationLossModel (Ptr< PropagationLossModel > loss)    //设置传输丢包模型
SetPropagationDelayModel (Ptr< PropagationDelayModel > delay)  //设置传输延迟模型



2.WifiPhy
http://www.nsnam.org/doxygen/classns3_1_1_wifi_phy.html
802.11 PHY layer model

2.1 YansWifiPhy  继承WifiPhy
http://www.nsnam.org/doxygen/classns3_1_1_yans_wifi_phy.html
802.11 PHY layer modelThis PHY implements a model of 802.11a. The model implemented here is based on the model described in "Yet Anothe
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值