How to Start Vehicular NDN Projects Using NS2

To start a Vehicular Named Data Networking (VNDN) project using NS2 (Network Simulator 2), we want to track a some stages for setting the replication of surrounding, require the set-up designs and execute the VNDN-related modules. Below illustrate to help you get started by such project.

Steps to Start Vehicular NDN Projects Using NS2

  1. Install NS2 on Your System

NS2 is an older network replicator, and we will want to install previously starting the project. Here’s how you can do that:

For Linux (Ubuntu/Debian):

sudo apt-get update

sudo apt-get install ns2

Designed for other OS such as Windows, NS2 can be installed using Cygwin for instance for Windows. Check the official NS2 website for the installation demonstrate for various platforms.

  1. Set up Vehicular Mobility Model

Intended for Vehicular NDN, we require a design that can replicate vehicle movement. NS2 has a built-in mobility model; nevertheless we want to encompass for vehicle-specific requirements. Here’s how you can get started:

  1. Install Mobility Model: We can use the SUMO (Simulation of Urban Mobility) tool along with NS2 to design vehicular mobility. SUMO creates the mobility traces which can be used in NS2 simulations. We can incorporate SUMO by NS2 through using the TraCIM (Traffic Control Interface for NS2) module.

We install SUMO:

sudo apt-get install sumo

  1. Generate Mobility Traces with SUMO: Next installing SUMO, we can build the road networks, congestion flows, and vehicle action designs. The mobility traces created through SUMO will be used to transfer the vehicles in the NS2 simulation.
  2. Configure Traces in NS2: We can change the SUMO output such as mobility traces in which format NS2 can use.
  1. Set Up Named Data Networking (NDN) Model in NS2

The Named Data Networking (NDN) design is not natively accessible in NS2, so we will necessary to use or create an NDN extension. The NS2 NDN extensions typically arise in the form of further components or patches, and a general NDN component for NS2 is according to their NDN-NS2 project, that estimates NDN protocols in NS2.

  1. Download and Set up NDN-NS2: We can install the NDN-NS2 code from GitHub. The following is a typical approach:

git clone https://github.com/named-data/ndn-dpdk.git

Then follow the procedures in the README.md file we compile and incorporate by NS2 setting.

  1. Integrate NDN with Vehicular Networks: After the NDN is setting; we can use the replicating of content-based data retrieval instead of traditional IP addresses. We will set-up the vehicle nodes to request and send the named data packets. The NDN module will handle the caching, forwarding, and interest/data packet handling.
  1. Configure the Simulation Scenario

In this step, we will express the replication of parameter like as:

  • Vehicle Network Topology: State on how well the vehicles are interconnected and either through a cellular network or ad hoc.
  • NDN Routing: Use the replication for NDN routing protocols such as NFD (Named Forwarding Daemon). We will require replicating the interest and data packet routing among vehicles according to the actions.
  • Cache Management: Setting the caching policies, so vehicles can cache content locally and send the other vehicles, decrease the network load.
  1. Create Simulation Scripts

The NS2 replication is controlled via Tcl (Tool Command Language) scripts. Intended for a Vehicular NDN project, the script will involve:

  • We configure the nodes for sample representing vehicles and road-side units.
  • Significant for mobility models such as from SUMO or custom scripts.
  • We setting the NDN protocol parameters for sample Interest/Data packet sizes, lifetime, etc.
  • Requiring the congestion design such as how often vehicles request data, and the data sources.
  • We configure the performance metrics for instance packet delivery ratio, latency, throughput, etc.

Sample snippet for defining nodes and NDN parameters in NS2:

# Create nodes (vehicles and RSUs)

set node1 [new Node]

set node2 [new Node]

# Set up mobility (using SUMO or custom)

$node1 random-motion 10

$node2 random-motion 10

# Define NDN parameters (customize based on your project)

set nfd [new Ndn]

$nfd attach $node1

$nfd attach $node2

  1. Run the Simulation

After the replication script is ready, we can through process for the implementation:

ns your_script.tcl

This will process for the replication and create the output files, like as trace files or performance logs that can be analyze.

  1. Analyze the Results

Next process for the replication, we can examine the different performance of parameter metrices such as:

  • Data delivery ratio: How well data is being delivered among the vehicles.
  • Latency: The latency is takes time for data and we travel among nodes.
  • Packet loss: How often packets are during the stopped transmission.

We can use tools like Tracegraph to envision for the trace files and examine the network behavior.

  1. Extend the Project

After we have the simple configure for the processing, we can encompass the project by:

  • Apply further routing protocols are complex for NDN.
  • Improve further vehicles and validate the scalability.
  • Executing the real-time congestion data or using the vehicle mobility datasets for further realistic environment.
  • Investigate by various caching approaches for instance proactive vs. reactive caching.

Vehicular Named Data Networking (VNDN) project using NS2

Overall, we had implemented Vehicular Named Data Networking (VNDN) in ns3 that creates routing by using the Vehicular Named Data Networking (VNDN) procedures. We also support and provide the related information for Vehicular Named Data Networking (VNDN).