Introducing ms-van3t - V2X simulation/emulation framework for ns-3

1,024 views
Skip to first unread message

Marco Malinverno

unread,
Feb 25, 2021, 4:12:56 AM2/25/21
to ns-3-users
Dear ns-3 users,
I'm writing to inform you that we recently released an open-source V2X simulation/emulation tool for ns-3, called ms-van3t. You can find it at this link: https://github.com/marcomali/ms-van3t

Based on ns-3.33 and SUMO 1.8.0, it features:
- The entire ITS-G5 stack (Facilities, BTP and GeoNet)
- 802.11p, LTE and C-V2X access technology models
- Emulation mode through fd-net-devices
- Possibility of removing SUMO from the loop and using real GPS trace to manage mobility
- A couple of applications to showcase and explain how to use the framework in V2I and V2V scenarios

Hope you will find it useful for your research,
Best


dardouri soumya

unread,
Feb 25, 2021, 4:27:38 AM2/25/21
to ns-3-...@googlegroups.com
GOOD MORNING Marco Malinverno , I used ns2 I DIDN'T KNOW NS IS  ns-3
I need code gpsr routing under n2,
Thank you

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/3f8c5d2b-a023-4746-81a0-7a7d193cf6ffn%40googlegroups.com.

Shilpi Mittal

unread,
Feb 25, 2021, 5:55:41 AM2/25/21
to ns-3-...@googlegroups.com
HI
I want to implement a communication model for mobility scenario in ns3 for vehicular edge computing without infrastructure. can u help me out by providing me a code or whatsoever is  feasible. 

I shall appreciate your help.

Thanks

Sarath Babu

unread,
Feb 25, 2021, 7:17:39 AM2/25/21
to ns-3-...@googlegroups.com
While building it is showing the bellow error. Please help me to rectify it. 

../src/automotive/helper/simpleCAMSender-helper.cc:3:10: fatal error: ns3/simpleCAMSender.h: No such file or directory
    3 | #include "ns3/simpleCAMSender.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

[2363/3828] Compiling src/automotive/model/asn1-legacy/EmergencyContainer.c
Waf: Leaving directory `/home/siva/ms-van3t-master/ns-3.33/build'
Build failed
 -> task in 'ns3-automotive' failed with exit status 1 (run with -v to display more information)

On Thu, Feb 25, 2021 at 2:42 PM Marco Malinverno <marco.ma...@gmail.com> wrote:
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/3f8c5d2b-a023-4746-81a0-7a7d193cf6ffn%40googlegroups.com.


--
With Regards. . . .
   Sarath Babu
   Research Scholar, 
   CSED, NITC

Marco Malinverno

unread,
Feb 25, 2021, 9:05:46 AM2/25/21
to ns-3-users
Dear Sarath,
thanks for your feedback. Indeed, I made a mistake in the last commit, sorry about that. I just fixed the bug, you can do "git pull" and the problem will be gone.
Best regards,
Marco

Shilpi Mittal

unread,
Feb 26, 2021, 6:55:31 AM2/26/21
to ns-3-...@googlegroups.com
Thanks for your quick response.

Actually I want to build a scenario where I want to connect static wireless ap connection with WAVE. 

Marco Malinverno

unread,
Feb 26, 2021, 7:07:59 AM2/26/21
to ns-3-users
Dear Shilpi,
if you take a look at the example called "v2i-areaSpeedAdvisor-80211p", you will see that it generates a scenario which may match your requirements. 
In particular, each vehicle will be equipped with 802.11p OBUs and will connect to a RSU, fixed in a static position. For more details about the applications running on top of the vehicles and RSU, please take a look at the comments that we tried to write in every source file.
Unfortunately the model is not comprising the US standard IEEE 1609.x (WAVE), but you will find a complete European ETSI ITS-G5 stack, which we are always trying to improve and to which we plan to extend in the near future (e.g. by implementing a security module as foreseen by ETSI).
Best Regards,

Juan Antonio Arízaga Silva

unread,
Feb 26, 2021, 1:45:49 PM2/26/21
to ns-3-users
It sounds wonderful
I  want to learn more. Thanks.

Shilpi Mittal

unread,
Mar 1, 2021, 1:53:13 AM3/1/21
to ns-3-...@googlegroups.com
thanks for information..
i have downloaded files. i do not know how to test/execute .cc file in my ns3 s/w.
Could you plz guide me how to do?
I tried to copy suggested file "v2i-areaSpeedAdvisor-80211p" in scratch folder but is asked for "v2i-areaSpeedAdvisor-80211p.h" file include.

What to do?

Marco Malinverno

unread,
Mar 1, 2021, 2:56:37 AM3/1/21
to ns-3-users
Dear Shilpi,
you have to follow exactly what's written in the README. 
1) You clone the repository
2) You run "./sandbox_builder.sh install-dependencies" to install ns3 with ms-van3t
3) You configure waf with "<ns3-folder>./waf configure --build-profile=optimized --enable-examples --enable-tests"
4) You build ns3 with "./waf build"
5) You run the example with "./waf --run "v2i-areaSpeedAdvisor-80211p"
If you read the README you will find all the instructions, you don't have to copy anything inside the scratch/ folder. 
Best regards,
Marco

frank obinna

unread,
Mar 29, 2021, 5:43:56 AM3/29/21
to ns-3-users
hello Marco, is it possible to change the IEEE technology to IEEE 802.11bd which support mmwave? i am doing a project on v2v at mmwave

Marco Malinverno

unread,
Mar 29, 2021, 6:34:23 AM3/29/21
to ns-3-users
Dear Frank,
unfortunately for the moment the access technologies available in ms-van3t are: LTE, 802.11p and C-V2X.
We will, in the future, integrate also models for 802.11bd and 5G. At the moment we are integrating millicar: https://github.com/signetlabdei/millicar but the integration is still at the beginning.
Best regards,
Marco

frank obinna

unread,
Mar 29, 2021, 6:52:40 AM3/29/21
to ns-3-...@googlegroups.com
Thanks for your reply. I have done simulation with millicar on 5G NR-v2x. But I need to also simulate for 11bd, and compare both at mmwave and so far I am yet to get a solution. Kindly recommend any 11bd v2v solution you can provide if its available.  Thank you in advance

You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/JwJpr4_YvEo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/1587d145-cb98-4e88-b80c-de8b8952433cn%40googlegroups.com.

Kokila Hettiarachchi

unread,
Aug 7, 2021, 5:18:45 PM8/7/21
to ns-3-users
Hi,
I followed the instructions in the read-me in repository.
I get following error after starting the build:

In file included from ../src/core/model/length.cc:21:0:
../src/core/model/length.h:28:10: fatal error: boost/units/quantity.hpp: No such file or directory
 #include <boost/units/quantity.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Could you please help me to resolve this problem?
Regards.
Kokila H


Paule Kevin NEMBOU KOUONCHIE

unread,
Oct 28, 2021, 4:16:27 PM10/28/21
to ns-3-users
Hello Marco,

Is it possible to write a custom application for RSU  and perform the analysis of energy consumption, packet loss ratio and transmission delay using ms-van3t ?

Regards,
Paule.

Marco Malinverno

unread,
Oct 29, 2021, 8:47:00 AM10/29/21
to ns-3-users
Dear Paule,
yes, for sure it is possible to write a custom application for the RSU. You can follow what was already been done with the AreaSpeedAdvisor, where the Server is located in the RSU. 
For what concerns the energy consumption measurements, in that case you need to have a model for that (which is not provided by ms-van3t but you can implement it yourself). For what concerns Packet Loss Ratio and Transmission Delay, you can either use the information present inside CAMs or use, for example, FlowMonitor.
Best regards,
Marco

Charles Pandian

unread,
Oct 31, 2021, 4:27:46 AM10/31/21
to ns-3-...@googlegroups.com
Hello Marco Malinverno,

First of all, I have to thank you and your team for providing such a quality ns-3 VANET extensions (ms-van3t ) for the ns-3 community.

I installed it and got excited with the quality of outputs of your  "ns-3 - TraCI - SUMO" integrated simulations.

Excellent work.  Keep up the good work.
I hope that your team will provide a Complete DSRC/WAVE/VANET  Stack for ns-3.

--------------------------- Sharing my Installation experience ------------------------------------------
Of course, the actual installation procedure given by you at ms-van3t github page is a good one for most of the normal installations. In fact, it is the “git” way of doing things in an elegant way. But I feel that procedure as a difficult one (even though it will do the installation automatically by your installation build script).


Anyway, I tried your ms-van3t extension and want to point out some installation issues on 32bit systems and 'chroot jail' based virtualization. 

Problem 1:

The very first failure was due to the peculiar way in which the original installation is done. The standard way of installing “ms-van3t” is  done through your installation script “sandbox_builder.sh“. But that script will not run under “root” privilege. (under 'chroot jail', the user normally will have root privilege only) 

if [ “$EUID” -eq 0 ]; then
echo “Please do NOT run this script as root.”
exit 1
fi

Even if we disable this by commenting the above lines of the installation script, it will again fail at lines where “sudo” is called(since chroot jail will not have sudo).  The installation failed even if we remove all “sudo” strings from the commands. I didn’t experiment with it further; because I decided to install it in a “plain old” and “easy” manual way.

Problem 2:
In fact, in my earlier attempt of installing it on 32 bit OS, there was a problem even after a  “successful install” of ms-van3t in a 32 bit Debian 10 (Buster) host under “chroot jail”. After successful install, if we try to run a simulation with ns-3-SUMO interaction feature, then the simulation successfully start to run with opening SUMO GUI ……. But, immediately, the simulation will get terminated with the following error:
/waf --run "v2i-areaSpeedAdvisor-lte"
...
'build' finished successfully (1.334s)
Sumo: wait for socket: 1s
Loading configuration ... done.
ns3.33-v2i-areaSpeedAdvisor-lte-optimized: ../src/automotive/model/ASN1/asn1-v2/per_support.c:238: per_long_range_rebase: 

Assertion `lb <= ub' failed.
Command ['/home/ms-van3t/build/src/automotive/examples/ns3.33-v2i-areaSpeedAdvisor-lte-optimized'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb").


The final solution for installing ms-van3t under 64bit chroot jail.

So, I just copied all the files and folders of ms-van3t directory to ns-3.33 directory (by overwriting the src folder). Now I successfully compiled ns-3.33 along with ms-van3t. And everything is working good.

I have posted my installation procedure of  ms-van3t under chroot jail at the following link :
Installing ms-van3t under "chroot jail"

It may be useful for others who try to install ms-van3t under chroot based virtualization.

----------------------------------------

Further, if needed, you may consider the error  "Assertion `lb <= ub' failed" that I got while running the simulation on a 32 bit OS.

Once again, thank you for your efforts.

Charles Pandian,



Durgesh

unread,
Nov 8, 2021, 9:04:54 PM11/8/21
to ns-3-users
Dear Frank,

Can you pls help me and share details of your project. I am working on CDN over 5G and it will be great to get some help from you. 

Thank you

frank obinna

unread,
Nov 9, 2021, 12:51:34 AM11/9/21
to ns-3-...@googlegroups.com
Hi Durgesh, 

I used millicar for my simulations of 5G NR-v2x. My focus was on millimeter wave on vehicularcommunication, so I explore IEEE 802.11bd and 5G NR. 

Durgesh

unread,
Nov 9, 2021, 9:04:54 AM11/9/21
to ns-3-users
Thank you for your response. 

Can you pls share your repo (github) to get some reference from your code.

Manuel Macia Navarro

unread,
Nov 17, 2021, 9:23:40 AM11/17/21
to ns-3-users

Hello  Marco Malinverno  :

I am Manuel Macia and I am carrying out a Master Project based on a RED research in NS3, my aim is to reproduce the results which are shown in redsims.ps downloadble in red-tests.cc file. The doubt is how can I generate identical or similar graphics to redsims.ps or NS2 simulations, because I read the redsims.ps to know the RED params and I have adjusted them in red-test.cc to generate the redsims.ps graphics and for instance, I have just tried test1 and many packets are dropped when in redsims.ps/NS2 simulations no packet are dropped because of buffer overflows and their graphics are not similar or identical to redsims.ps/NS2 simulations. I have no idea what went wrong about the adjustment of RED parameters to obtain redsims.ps/NS2 simulations. I would like to know if you could help me out. The version on which I am working is NS3.33.

Regards (I have attached the adjusted red-tests.cc for you to take a look at).

Manuel Macia Navarro

red-tests.cc

bouchrit leila

unread,
Nov 17, 2021, 1:57:45 PM11/17/21
to ns-3-users
Dear  Marco,
i run scenario "v2i-areaSpeedAdvisor-80211p", it work perfectly. So i want to draw a highway and i want to  put x fixed UAV instead of RSU.
so when i change the sumo configuration( highway with two lane in the same direction) and i change the positions of server(uav)  in  "v2i-areaSpeedAdvisor-80211p" i got this error can you please help me  to resolve this.

Sumo: wait for socket: 1s
Loading configuration ... done.
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 3) > this->size() (which is 1)
Command ['/home/leila/Bureau/ms-van3t/ns-3.33/build/src/automotive/examples/ns3.33-v2i-areaSpeedAdvisor-80211p-optimized'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb").

another thing in your simulation you put RSU in the center of map (0,0,20) and the GeoNet dissemination area is set as a circular area around the RSU (90 meters of diameter), how can i put uavs along the highway?

Reem Sherri

unread,
Nov 19, 2021, 2:51:47 PM11/19/21
to ns-3-users
hii want to ask you from where do I run 
: ./waf --run "v2i-areaSpeedAdvisor-lte"
because I entered src/automotive/models/examples and its giving me that no ./waf command found ?

Charles Pandian

unread,
Nov 20, 2021, 1:37:17 AM11/20/21
to ns-3-...@googlegroups.com
If you issue the command 
 ./waf --run "v2i-areaSpeedAdvisor-lte"

then the "./waf"   only will run the script 'waf' which is in the current directory.
So, always it will be inside the ns-3 folder .
EX:
/home/yourhome/ns-allinone-3.33/ns-3.33/

So, it will run waf and call the simulation script that will be already in the ms-van3t examples path.
(if it is not running, you may copy the script to the scratch folder and then run it - "./waf --run "v2i-areaSpeedAdvisor-lte")

If needed, you may refer the following post  :

Installing ms-van3t – A Multi-Stack VANET Framework for ns-3


Charles Pandian,



--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

LOPAMUDRA HOTA

unread,
Feb 23, 2022, 5:36:35 AM2/23/22
to ns-3-users
Hi Marco,

Your open-source V2X simulation/emulation tool ms-van3t is great to work on.
Could you please give an insight into the 802.11p implementation part?
I am working on computation and adaptation of contention window based on a number of vehicles.
Is there any scope to change the existing 802.11p module with an adaptive CW mechanism?
Guide me regarding this. I hope I am clear with my query.

Thanks,
Lopamudra Hota

On Thursday, February 25, 2021 at 2:42:56 PM UTC+5:30 marco.ma...@gmail.com wrote:

ketut bayu tv

unread,
Nov 28, 2022, 12:05:13 AM11/28/22
to ns-3-users
Greetings,

The ms-van3t module is an excellent complete module. But is it possible to measure the simulation performance of v2i-areaSpeedAdvisor-80211p and v2v-emergencyVehicleAlert-80211p in ms-vanet module with flowmonitor? If anyone shares the example program code, I really appreciate it. Thank you

Kind regards,
Bayu

Kassi Venceslas Kadio

unread,
Dec 1, 2023, 5:26:07 PM12/1/23
to ns-3-users

I am implementing a new MAC protocol for vehicular environment emergencies messages delivery . I would like to use VAN3T can help implement the protocol. If yes from where to set up layer 2 ( MAC layer parameter ) to see the behavior ? Do we have an example of existing code we can use?

Thank you 
Reply all
Reply to author
Forward
0 new messages