Posts

Showing posts with the label NS3

Installation of ns-3.47 in Mac M4 (MacBook Air M4)

Image
Installation of ns-3.47 in Mac M4 (MacBook Air M4) If you're working on network simulations and recently got your hands on a powerful MacBook Air M4, setting up ns-3 (version 3.47) is a great first step. While macOS (especially on Apple Silicon like M4) can sometimes feel tricky for open-source builds, the process is actually smooth if you follow the right steps. In this guide, I’ll walk you through a clean and working installation of ns-3.47 on macOS running on an M4 chip. Check the video for complete instructions:  🔧 Prerequisites Before installing ns-3, make sure your system has the required developer tools and package manager. 1. Install Homebrew Homebrew is essential for managing dependencies: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Then configure your environment: (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/pradeepkumar/.zprofile Apply the changes: eval "$(/o...

ns-3 Tutorial: Simulating P2P & CSMA Networks with NetAnim, Wireshark, and FlowMonitor

Image
Welcome back! Today, we are going to explore a hybrid network topology in ns-3.44 . We will be simulating a network that consists of two Point-to-Point (P2P) nodes and three CSMA (Carrier Sense Multiple Access) nodes (representing a LAN). Beyond just running the simulation, we are going to experiment with five essential modules to visualize and analyze our network performance: NetAnim (Network Animation) AsciiTraceHelper (TraceMetrics-1.4.0) Gnuplot (Graphing data) Packet Capture (Wireshark & .pcap files) Flow Monitor (Performance statistics) Let's get started! Check the full video here: Prerequisites & Setup We will be using the standard example file second.cc . First, we need to copy this file from the examples directory to our scratch directory so we can modify it without ruining the original. Open your terminal and run: Bash cd ns-allinone-3.44/ns-3.44 cp examples/tutorial/second.cc scratch/ Now, let's verify that the basic simulation works: Bash ./ns3 run s...

How to Install ns-3.46 on Ubuntu 24.04 LTS

Image
Step-by-Step Guide: How to Install ns-3.46 on Ubuntu 24.04 LTS Welcome to Engineering Clinic! As Ubuntu continues to evolve with its 24.04 LTS release, network simulation tools must also keep pace. Today, we will walk through the complete installation process of ns-3.46 on the new Ubuntu 24.04 environment. Whether you are a student, researcher, or developer, setting up the environment correctly is the most critical step. This guide covers everything from installing dependencies to setting up the specific Python virtual environment required for this version. Check the video for complete instructions: Let’s get started. Step 1: Update and Install Dependencies Before we touch the network simulator, we need to prepare the Linux environment. Ubuntu 24.04 requires a specific set of libraries for C++, Python, and visualizer tools. First, update your repositories: $ sudo apt update Next, install the required dependencies. This is a comprehensive list ensuring that key features (like NetAnim...