This repository contains Tcl scripts for simulating various network scenarios using NS2 (Network Simulator 2). NS2 is a widely used tool for simulating network protocols, scenarios, and traffic patterns. These scripts aim to demonstrate different networking concepts and protocols, including TCP, UDP, and network topology configurations.
- Simulates network scenarios using NS2.
- Demonstrates TCP and UDP communication.
- Includes scripts for creating network topologies.
- Suitable for learning computer networking concepts and experimenting with NS2.
These scripts are designed to run on Linux systems. NS2 is primarily developed for Unix-based systems and has been tested on various Linux distributions.
- NS2 (Network Simulator 2):
- NS2 is required to run the simulation scripts. It can be installed from the package manager of your Linux distribution.
- Linux Operating System:
- The scripts are compatible with Linux-based operating systems.
To run NS2 on your Linux system, follow these steps:
-
Install NS2:
- NS2 can be installed from the package manager of your Linux distribution. For example, on Debian-based systems, you can use the following command:
sudo apt-get install ns2
- NS2 can be installed from the package manager of your Linux distribution. For example, on Debian-based systems, you can use the following command:
-
Enable NS2:
- After installation, ensure that NS2 is properly configured and enabled on your system. You may need to set environment variables or make additional configurations depending on your system setup.
-
Install commands for NS2 (In Linux):
- sudo apt-get update
- sudo apt-get install ns2
- sudo apt-get install nam
- sudo apt-get install tcl
-
Clone this repository to your local machine:
git clone <repository-url>
-
Navigate to the directory containing the Tcl scripts:
cd Networking-with-NS2-Simulation
-
Run the desired NS2 script using the following command:
ns <script-name>.tcl
Contributions to this repository are welcome! If you have any improvements, bug fixes, or new features to add, feel free to open a pull request.
This project is licensed under the MIT License.
For any inquiries or feedback, please contact the project maintainer: