ns3网卡创建流程
来源:互联网 发布:2016年淘宝女装排行榜 编辑:程序博客网 时间:2024/06/05 07:47
CsmaHelper csma; csma.SetChannelAttribute ("DataRate", StringValue ("5Mbps")); csma.SetChannelAttribute ("Delay", StringValue ("0.001ms")); NetDeviceContainer devices; devices = csma.Install (nodes);
这是代码中的网卡实现。
属性设置如下,
/** * \param n1 the name of the attribute to set * \param v1 the value of the attribute to set * * Set these attributes on each ns3::CsmaNetDevice created * by CsmaHelper::Install */ void SetDeviceAttribute (std::string n1, const AttributeValue &v1); /** * \param n1 the name of the attribute to set * \param v1 the value of the attribute to set * * Set these attributes on each ns3::CsmaChannel created * by CsmaHelper::Install */ void SetChannelAttribute (std::string n1, const AttributeValue &v1);
即m_deviceFactory
m_channelFactory
m_deviceFactory.SetTypeId ("ns3::CsmaNetDevice"); m_channelFactory.SetTypeId ("ns3::CsmaChannel");
在后面的类中列出了所有属性列表
0 0
- ns3网卡创建流程
- NS3 仿真基本流程
- QEMU虚拟网卡设备的创建流程
- ns3 dce 2层报文发送流程
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3为脚本运行创建日志LOG
- 网卡驱动流程分析
- 网卡接收数据流程
- ns3中loopback接口是在什么时候创建的?
- SEA创建、网卡聚合
- 创建虚拟网卡
- eclipse插件:OpenExplorer快速打开文件目录
- ZeroMQ 的模式
- axis2调用webservice接口核心代码
- IIS6.0 无法安装,提示文件错误,安装程序无法复制文件
- 如何配置原材料的默认采购类型为F
- ns3网卡创建流程
- 移动端尺寸基础知识
- SAT阅读必须掌握的16大句型
- Sublime Text 2 安装Package解决中文乱码
- 九种js弹出对话框的方法总结
- @SuppressWarnings的使用、作用、用法
- git---安装
- android5.0(Lollipop) BLE Peripheral深入理解系统篇之提高篇
- 模板文件不存在,无法解析文 档