通过相扑和Ad-hoc网络实施NS2 LTE仿真 [英] Implement an NS2 LTE simulation with sumo and Ad-hoc network
问题描述
大家好,我想请您提供宝贵的帮助,以查看是否有可能将我拥有的SUMO场景添加到NS2中,以便能够模拟汽车之间的自组织网络,并允许它们与LTE无线电通信.基站(eNodeB). 我已经运行了SUMO和NS2,并且正在运行LTE补丁程序,感谢Knud Larsen在本文中给出的答案,我能够添加LTE功能:
Hello everyone I want to ask for your valuable help to see if it is possible to add a SUMO scenario I have into NS2 to be able to simulate an ad-hoc network between cars and also allowed them to communicate with an LTE radio base station (eNodeB). I already have SUMO and NS2 with the LTE patch running, I was able to add the LTE features thanks to an answer given by Knud Larsen in this post:
推荐答案
参考.您的注释"7" https://drive.google.com/drive/folders/0B0KAEW9TOkDvekZxRkFWa3ZnLXM
Ref. your note "7" https://drive.google.com/drive/folders/0B0KAEW9TOkDvekZxRkFWa3ZnLXM
您的文件unam.tcl
:
set val(nn) 9
... change to
set val(nn) 11 ;# maximum number of nodes
# nn must be higher than the node number in traffic, movement files :
# any higher number can be used
禁止具有相同文件名的文件. unam.tcl现在被命名为unam11.tcl
,而bility.tcl被命名为mobility9.tcl
.
It is forbidden to have to files with the same file name. unam.tcl is now named unam11.tcl
, and mobility.tcl is mobility9.tcl
.
您的文件unam.tcl(unam11.tcl
):不能使用高于$node_(10)
的节点.您的文件行111
Your file unam.tcl (unam11.tcl
): No node higher than $node_(10)
can be used. Your file line 111
$ns_ attach-agent $node_(22) $sink
... change to e.g.
$ns_ attach-agent $node_(3) $sink
流量文件和移动文件也可以不超过节点数10:
Traffic file and movement files can also not exceed node numbers of 10 :
57 set opt(cp) "flowmod-teatinos-M40.tcl" ;# Network workload
.... must be e.g.
57 set opt(cp) "flowmod-urban-malaga-S10.tcl" ;# Network workload
... And
103 source mobility.tcl
104 source flowmod-teatinos-M40.tcl
.... can be
103 source mobility9.tcl
104 source flowmod-urban-malaga-S10.tcl
(数字为行号.)最多10个节点的其他流量文件:cbr10,cbr-10-1-10-20.并可以使用以下命令创建具有9 .. 10个节点的新流量文件. $ ns cbrgen.tcl [options]
(The numbers are line numbers.) Other traffic files with max 10 nodes : cbr10, cbr-10-1-10-20 . And new traffic files with 9 .. 10 nodes can be created with e.g. $ ns cbrgen.tcl [options]
流量文件等. https://drive.google.com/drive/folders/0B7S255p3kFXNa3ZPQjB3UHo3cWc?usp = sharing
我的测试:$ ns235-LTE-64 unam11.tcl
:'nam'打开OK,创建了文件unam.nam 43.1MB和unam.tr 31.9MB.
My test : $ ns235-LTE-64 unam11.tcl
: 'nam' opens OK, the files unam.nam 43.1MB, unam.tr 31.9MB are created.
您的示例unam.tcl中省略了802.11p文件.新示例= unam11-802.11p.tcl
,连接的802.11p文件= 802.11p-2.tcl
.链接→ https://www.dropbox .com/s/yofht7p5h2kk068/unam11-802.11p.tcl_files.tar.gz?dl = 0
EDIT : An 802.11p file was omitted in your example, unam.tcl . New example = unam11-802.11p.tcl
, with the connected 802.11p file = 802.11p-2.tcl
. Link → https://www.dropbox.com/s/yofht7p5h2kk068/unam11-802.11p.tcl_files.tar.gz?dl=0
剩下的可能是一些LTE通信,请参阅LTE示例 https://drive.google.com/file/d/0B7S255p3kFXNSmd4Q3h3dXp1QWc/view?usp=sharing
What is left out may be some LTE communication, see LTE examples https://drive.google.com/file/d/0B7S255p3kFXNSmd4Q3h3dXp1QWc/view?usp=sharing
这篇关于通过相扑和Ad-hoc网络实施NS2 LTE仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!