首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在ns2场景中创建路侧单元和eNodeB

如何在ns2场景中创建路侧单元和eNodeB
EN

Stack Overflow用户
提问于 2017-11-09 08:44:00
回答 1查看 235关注 0票数 0

我有一个802.11p场景,一些节点已经有了相扑轨迹,现在我正在测试V2V (车辆到车辆)通信,使用DSDV和AODV路由协议测量吞吐量,但我还需要添加至少3个802.11p RSU (路侧单元)和一个least,我如何才能将这两个网络元素添加到我的ns2项目中,以便能够测试V2I (车辆到基础设施)通信。

EN

回答 1

Stack Overflow用户

发布于 2017-11-09 16:25:21

LTE eNodeB

现已关闭的“googlecode”提供的"LTE源码包“之一是”minerve mampaka-lte“:有一些在其他地方找不到的文件: Parameters.tcl、Topology.tcl、main.tcl……

LTE__minerve mampaka lte.tar.gz https://drive.google.com/file/d/1xpqUxUV3d1WHKZsBS54r_Qnx-IfOj3HB/view?usp=sharing

从模拟main.tcl

代码语言:javascript
运行
复制
#include other tcl files
source Parameters.tcl
source Topology.tcl
source session-rtp.tcl
source http-agent.tcl
source http-cache.tcl
source http-server.tcl

在配置文件Topology.tcl中,53 - 70行:

代码语言:javascript
运行
复制
#create dual-simplex links between eNodeB and the SGW
#uplink S1-U link from each eNB to SGW with user defined bandwidth and delay 
$ns simplex-link $eNodeB $SGW $input_(UP_S1_BANDWIDTH) $input_(UP_S1_DELAY) $input_(UP_S1_QUEUE)
$ns queue-limit $eNodeB $SGW $input_(QUEUE_LIMIT)

#downlink S1-U link from each SGW to eNB with user defined bandwidth and delay 
$ns simplex-link $SGW $eNodeB $input_(DOWN_S1_BANDWIDTH) $input_(DOWN_S1_DELAY) $input_(DOWN_S1_QUEUE)
$ns queue-limit $SGW $eNodeB $input_(QUEUE_LIMIT)

#create duplex link between SGW and PGW with user defined bandwidth and delay 
$ns duplex-link $SGW $PGW $input_(S5_BANDWIDTH) $input_(S5_DELAY) $input_(S5_QUEUE)
$ns queue-limit $SGW $PGW $input_(QUEUE_LIMIT)

#create duplex link between PGW and SERVER with user defined bandwidth and delay 
$ns duplex-link $PGW $SERVER $input_(SGI_BANDWIDTH) $input_(SGI_DELAY) $input_(SGI_QUEUE)
$ns queue-limit $PGW $SERVER $input_(QUEUE_LIMIT)

}

示例,使用:在您的模拟source Topology.tcl→中包含‘Topology.tcl’

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47192122

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档