# csma_simulation
This is a CSMA/CA simulation in MATLAB. I can't find one from the Internet, so I code it on my own.
Free free to play with it.
Development timeline:
1. 5 slaves talk to master with fixed data size
Algorithm:CSMA/CA(Carrier sense multiple access with collision avoidance)
- waiting period before sending(check if channel is idle)
- collision happend random backoff
Simulation:Matlab Version simulation
- 8 states in CSMA/CA
when will this algorithm fails:
- the collision slaves always random backoff for the same amount of time
2. support different data size
Algorithm:
- add 1 receiving state in the simulation
- when only 1 node is sending data trigger receiving states of receiver
when will this algorithm fails:
- Almost never
3. support priority and prevent low priority slaves from starving
Algorithm:
- max waiting time before sending depends on the priority, the higher priority the shorter max waiting time
- backoff time also depends on priority, the higher priority the shorter max waiting time
- to prevent starves low priority slaves, we make all the waiting time as random number from a range
没有合适的资源?快使用搜索试试~ 我知道了~
matlab code.rar_CSMA/CA_Collision-Avoidance_carrier_csma_sense
共6个文件
m:5个
md:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 74 浏览量
2022-09-24
23:17:12
上传
评论
收藏 8KB RAR 举报
温馨提示
1. 5 slaves talk to master with fixed data size Algorithm:CSMA/CA(Carrier sense multiple access with collision avoidance) - waiting period before sending(check if channel is idle) - collision happend random backoff
资源推荐
资源详情
资源评论
收起资源包目录
matlab code.rar (6个子文件)
matlab code
main.m 5KB
AnimatedLine.m 14KB
state_machine.m 13KB
working_node.m 1KB
plot_line.m 716B
README.md 1KB
共 6 条
- 1
资源评论
刘良运
- 粉丝: 77
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功