SUMO Interfacing with vehicles moving in a closed

Open NetSim and Select Examples > VANETs > SUMO Vehicles in closed loop then click on the tile in the middle panel to load the example as shown in below screenshot

Graphical user interface, text, application Description automatically generated

Figure 4‑25: List of scenarios for the example of SUMO Vehicles in closed loop

The NetSim UI would display as shown below.

Figure 4‑26: Network set up for studying the SUMO Vehicles in closed loop

Settings done for this sample experiment:

  1. Applications set as BSM (Basic_Safety_Message)
APP_ID Source ID Destination ID Packet Size (Bytes) Inter-Arrival Time (µs)
APP_1_BSM 1 6 (RSU) 100 2,000,000
APP_2_BSM 2 6 (RSU) 100 2,000,000
APP_3_BSM 3 6 (RSU) 100 2,000,000

Table 4‑12: CBR Applications settings

  1. Transport protocol set as WSMP for all applications in Application window.

  2. In Vehicle General Properties, under SUMO file Configuration.sumo.cfg file was selected from the Docs folder of NetSim Install Directory \< C:\Program Files\NetSim Standard\Docs\Sample_Configuration\VANET\SUMO-Vehicles-moving-in-closed-loop >

Figure 4‑27: General Properties window

  1. Adhock link/Wireless link properties were set as follows:
Channel Characteristics Pathloss Model Pathloss Exponent
Pathloss_Only Log_Distance 2

Table 4‑13: Wireless link properties

  1. Co-ordinates of RSU are set as X = 278.31 and Y = 153.48

  2. Medium access protocol set as DCF in all vehicles and RSU.

  3. Set transmitter power to 40mW under INTERFACE_1(Wireless) > Physical layer properties of Vehicles and RSU.

  4. Enable Plot and Run simulation and observe the movement of the vehicles in the packet animation window.

  5. After the simulation, in NetSim Packet Animation window, we can see that vehicles are moving continuously through the closed-loop hexagonal path till the given end time.

Result:

Figure 4‑28: Packet animation window for NetSim

With play and record animation enabled, same can be observed in SUMO as well

Figure 4‑29: Animation window for Sumo

According to SUMO, the road network consist of ‘Edges’ and ‘Junctions’. The re-router (a device in SUMO and is not to be confused with Routers available in NetSim) established in the edge will re-route the vehicle from one edge to other after one successful revolution through the road network. The presence of a single re-router will forward the vehicles from one edge to other and then the vehicle eventually stops its movement. Hence, two re-routers have been established in two edges which re-routes the vehicle from one edge to other. The above road network consists of six edges in which re-routers are established in the starting and ending edges, which re-routes the vehicles present in the network from starting edge to the finishing edge after one complete revolution through the road or path. As a result, the vehicles will move through the closed loop continuously, until the end time configured in the configuration file.

In the animation window, we can observe that the vehicles will start from a point in one of the edges, moves through other five edges and finally reach back the point where it started. At this point, the re-router will direct the vehicles to the next edge. This cycle will continue till the end time configured.

The RSU configured in the network will allow V2I communication. Per the application configuration a 100 bytes packet is transmitted from vehicle to RSU every 2 seconds. This can also be observed in the packet trace.