'Implement an NS2 LTE simulation with sumo and Ad-hoc network

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:

invalid command name "Queue/LTEQueue"



Solution 1:[1]

Ref. your note "7" https://drive.google.com/drive/folders/0B0KAEW9TOkDvekZxRkFWa3ZnLXM

Your file 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

It is forbidden to have two files with the same file name. unam.tcl is now named unam11.tcl, and mobility.tcl is mobility9.tcl .

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

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

(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]

Traffic files etc. https://drive.google.com/drive/folders/0B7S255p3kFXNa3ZPQjB3UHo3cWc?usp=sharing

My test : $ ns235-LTE-64 unam11.tcl : 'nam' opens OK, the files unam.nam 43.1MB, unam.tr 31.9MB are created.

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

What is left out may be some LTE communication, see LTE examples https://drive.google.com/file/d/0B7S255p3kFXNSmd4Q3h3dXp1QWc/view?usp=sharing

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1