Skip to main content

Posts

How to Install Network Simulator 3 (NS-3.46) on Fedora Linux

While most network simulation tutorials focus on Ubuntu or Linux Mint, Fedora is a powerful, cutting-edge distribution that is excellent for research and engineering. In this guide, we’ll walk through the complete process of installing Network Simulator 3 (specifically version 3.46.1) on Fedora. Prerequisites & System Updates Before starting the installation, ensure your system is fully up to date. Fedora uses the DNF (or YUM ) package manager. Open your terminal and run: sudo dnf update Note:  If this is your first time updating, it might download a significant amount of data (around 1GB–4GB), so ensure you have a stable connection. (Follow step-by-step instructions from here.) Step 1: Install Development Tools To compile NS-3 from source, you need a suite of development libraries. Start by installing the GNOME Software Development Kit via the Fedora Software Center or terminal. After that, install the NS-3 dependencies using the command provided in the video description. ...

Install Ubuntu 24.04 on Windows 11 in Under 5 Minutes with WSL2

Are you eager to dive into the world of Linux but hesitant about partitioning your hard drive or dealing with complex installations? Good news! You can get a full fledged Ubuntu 24.04 (or almost any other Linux distribution) environment running on your Windows 11 machine in just a few minutes, thanks to the power of WSL (Windows Subsystem for Linux). This method is perfect for beginners just starting their Linux journey. It provides a seamless way to experiment with commands, learn the file system, and develop in a Linux environment without any risk to your existing Windows setup. If you're an experienced user who needs a dedicated system, a separate partition might still be your preferred route, but for everyone else, WSL is a game-changer! Here's how incredibly easy it is: Tools You'll Need: WSL (Windows Subsystem for Linux): This is the magic behind running Linux on Windows. Linux OS Distro: We'll be using Ubuntu 24.04, but you can pick almost any other distributio...

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

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...