# Saturation-Throughput
Model using ns-3 simulator on Ubuntu to simulate IEEE 802.11 CSMA/CA technic. It uses a mechanism called DCF (distributed coordinated function) which applies a binary exponential backoff to avoid collisions.
This model simulate from physical layer, through mac layer to application layer to simulate the work from Bianchi in 1998. The Bianchi's model can be viewed as followed:
https://pdfs.semanticscholar.org/4a5c/f874e9469815113c7ea93ff97317bdb52a90.pdf
Authors: Kaichen Zhang, Xiaoyu Gao
1. MATLAB Simulation Codes: simulation.m
This file is used to simulate Bianchi’s model.
Operating System: tested on Mac. Should be able to run on Windows
Required Software: Matlab
Description of files
1) Required inputs: minimum back off window size, and maximum stage. The two variables are defined by Bianchi: for example, W = 32, m = 3.
2) The simulation will output the plot of saturation throughput versus number of stations.
2. MATLAB Computation Codes: computation.m
Generate formula analysis to compute the results of Bianchi’s model.
Operating System: tested on Mac. Should be able to run on Windows
Required Software: Matlab
Description of files
1) Required inputs: minimum back off window size, and maximum stage. The two variables are defined by Bianchi: for example, W = 32, m = 3.
2) The simulation will output the plot of saturation throughput versus number of stations by computation of formulas.
3. ns-3 Simulation Codes: project1.cc
ns-3 simulation codes.
Operating System: Ubuntu
/******** IMPORTANT: Pre-set ********/
Overwrite the source file “wifi-mac.cc”, “regular-wifi-mac.cc”, “dca-txop.cc”, and “dca-txop.h” in ns-3.27/src/wifi/model/ with the files provided in the folder “changed src files”, then type ./waf to build ns-3 environment. After successful build, project1.cc should be runnable.
Description of files
1) optional input:
• nSta: number of station, default to be 5. For example, type in ./waf —-run “scratch/project1 —-nSta=50”
• cxmin: the minimum contention window, it is the initial backoff window size by Bianchi minus 1. Default to be 31. For example, type in ./waf —-run “scratch/project1 —-cwmin=127”
• cxmax: the maximum contention window, it is computed by 2^m*W-1 by Bianchi. Default to be 255 (W = 32, m = 3). For example, type in ./waf —-run “scratch/project1 —-cwmax=1023”
• trafficRate: traffic rate(String) for each node with packet size. Default to be 1Mb/s. For example, type in ./waf —-run “scratch/project1 —-trafficRate=800kb/s”
• trace: bool variable to enable/disable simulator schedule. If enabled, user can supervise the aggregate throughput of the access point for each 0.1 second. Default to be false. For example, type in ./waf —-run “scratch/project1 —-trace=true”
2) The simulation will output:
• the time first packet received by ap
• the time last packet received by ap
• the average actual throughput into ap
3) If trace is enabled, terminal will output simultaneous throughput each 0.2 second in the simulation.
没有合适的资源?快使用搜索试试~ 我知道了~
matlab代码csma-ns3-wireless-DCF-saturationThroughput:ns3-无线-DCF饱和吞...
共8个文件
cc:4个
m:2个
h:1个
需积分: 11 13 下载量 174 浏览量
2021-05-20
01:58:53
上传
评论 2
收藏 26KB ZIP 举报
温馨提示
matlab代码csma 饱和通量 在Ubuntu上使用ns-3模拟器进行建模,以模拟IEEE 802.11 CSMA / CA技术。 它使用一种称为DCF(分布式协调功能)的机制,该机制应用二进制指数补偿以避免冲突。 该模型从物理层到Mac层再到应用程序层进行模拟,以模拟Bianchi在1998年的工作。Bianchi的模型如下所示: 作者:张凯晨,高晓宇 MATLAB仿真代码:simulation.m 该文件用于模拟Bianchi模型。 操作系统:在Mac上测试。 应该能够在Windows上运行必需的软件:Matlab 文件说明 必需的输入:最小后退窗口大小和最大级数。 这两个变量由Bianchi定义:例如W = 32,m = 3。 仿真将输出饱和吞吐量与站点数量的关系图。 MATLAB计算代码:Calculation.m 生成公式分析以计算Bianchi模型的结果。 操作系统:在Mac上测试。 应该能够在Windows上运行必需的软件:Matlab 文件说明 必需的输入:最小后退窗口大小和最大级数。 这两个变量由Bianchi定义:例如W = 32,m = 3。 仿真将通过公式计
资源详情
资源评论
资源推荐
收起资源包目录
ns3-wireless-DCF-saturationThroughput-master.zip (8个子文件)
ns3-wireless-DCF-saturationThroughput-master
README.md 3KB
matlab codes
computation.m 2KB
simulation.m 2KB
ns-3 codes
changed src files
dca-txop.cc 15KB
regular-wifi-mac.cc 43KB
dca-txop.h 12KB
wifi-mac.cc 15KB
project1.cc 7KB
共 8 条
- 1
weixin_38637665
- 粉丝: 4
- 资源: 951
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现文档+程序边缘计算任务卸载与资源调度的算法,是论文的源代码,具有价值.rar
- 什么是学生成绩管理系统c++以及学习学生成绩管理系统的意义
- 什么是词向量-以及学习关于了解词向量的意义
- 什么是mybatis动态sql以及学习mybatis动态sql的意义
- 华为数据治理方法论,包括:数据治理框架、数据治理组织架构、数据治理度量评估体系以及华为数据治理案例分享
- 基于matlab实现对表面肌电信号进行归一化处理,并对归一化后的图形显示 .rar
- 基于matlab实现单级倒立摆的 T-S 模型 包括 LMI 程序源码
- 图书管理系统(struts+hibernate+spring+ext).rar
- 基于matlab实现此压缩包包含语音信号处理中的语音变声代码加音频.rar
- STM32使用PWM驱动舵机并通过OLED显示
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0