Phase 4:整合vbf和uwaloha,从反馈的ack中获取信息了

1_bcst.tcl:

SINK 5 : terminates (send 20, recv 0, cum_delay 0.000000)

SINK 0 : terminates (send 0, recv 10, cum_delay 1.801000)

SINK(0) : send_id = 5, num_recv = 10

god: the energy consumped is 14.126400

2_aloha.tcl:

SINK 5 : terminates (send 20, recv 0, cum_delay 0.000000)

SINK 0 : terminates (send 0, recv 10, cum_delay 30.755829)

SINK(0) : send_id = 5, num_recv = 10

god: the energy consumped is 16.346832

两种场景都是链式的拓扑结构,可以看出uwaloha.tcl甚至比broadcast消耗的能量多。

如果将Uwaloha的ACKOn参数设置为0的话,那么成功率不变但是消耗能量减少为:14.864928。

节点静止,无法识别其性能,那么如果使节点移动如何?试试吧!

double UnderwaterChannel::distCST_ =100.0;

让节点动起来,然后我们在讨论信道状况!

为嘛修改后的代码的recv都为0呢?(这个问题必须解决!!!)


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值