我有一个802.11p场景,其中一些节点已经有一个相扑轨迹,现在我正在测试V2V(车辆到车辆)通信,测量整个DSDV和AODV路由协议,但我还需要至少添加3 802.11p RSU(路边单元)和LTE eNodeB,如何将这2个网元添加到我的ns2项目中,以便能够测试V2I(车辆到基础设施)通信。
答案 0 :(得分:0)
LTE eNodeB
其中一个" LTE源代码包"现已关闭的googlecode'是" 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
来自模拟Example 1
ping abc.firebaseio.com
output : 12.201.86.45
Example 2
ping xyz.firebaseio.com
output : 12.201.86.45
main.tcl
从配置文件Topology.tcl,第53-70行:
#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
示例,使用:Include' Topology.tcl'在您的模拟→#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)
}