Computer Networks
Computer Networks: Class: III B.Tech(AI&DS), V-Semester
Experiments
Experiment 9: Wire shark control commands
GNS3 Installation in Ubuntu
NS3 Simulator Installation in Ubuntu
NS3 Simulator Installation in Windows OS
Installing NS-3 (Network Simulator 3) on Windows 10 can be a bit challenging because NS-3 is primarily designed for Linux environments. However, you can use a virtual machine or Windows Subsystem for Linux (WSL) to run NS-3 on Windows 10. Here's a high-level overview of how to set up NS-3 on Windows 10 using WSL:
1. **Install Windows Subsystem for Linux (WSL)**:
- Open PowerShell as an Administrator.
- Run the following command to enable WSL:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- Install the WSL 2 update package from this link: https://aka.ms/wsl2kernel
- Set WSL 2 as the default version:
wsl --set-default-version 2
- Install a Linux distribution of your choice from the Microsoft Store (e.g., Ubuntu).
2. **Install Required Dependencies**:
- Update the package list and upgrade existing packages using the following commands:
sudo apt update
sudo apt upgrade
- Install essential build tools and libraries:
sudo apt install build-essential git python3 python3-pip
- Install additional dependencies as needed for your specific NS-3 use case. You can refer to the NS-3 documentation for guidance on required packages.
3. **Download and Build NS-3**:
- Clone the NS-3 repository from GitHub:
git clone https://github.com/nsnam/ns-3-dev-git.git ns-3
- Change to the ns-3 directory:
cd ns-3
- Build NS-3 by running:
./waf configure
./waf
4. **Test NS-3**:
- Run a simple test to ensure that NS-3 is working correctly. For example, you can use the following command to run a basic NS-3 script:
./waf --run scratch/first.cc
This is a basic outline of how to set up NS-3 using WSL on Windows 10. Keep in mind that NS-3 is a complex simulation tool with various modules, and the installation process may vary depending on your specific use case and requirements.
You should refer to the official NS-3 documentation and resources for detailed installation instructions and additional configuration options.
Additionally, you can also explore pre-built NS-3 Docker containers or virtual machine images that simplify the installation process on Windows by encapsulating NS-3 within a Linux environment.
These options can be more user-friendly and convenient for Windows users.
NS3 Simulator Installation in Any OS
Follow any of these instructions to install NS3 in Ubuntu Versions.