This repository contains an NS-3 simulation script for a wireless network scenario with multiple mobile nodes and a monitoring node. It has added support for caching mechanisms.
The simulation demonstrates the following features:
- Random Walk Mobility Model for nodes
- Wi-Fi 802.11n network with configurable channel and physical layer settings
- Point-to-point links between nodes and a monitoring node
- UDP communication between nodes (client-server model)
- Packet capture and tracing (PCAP and ASCII)
- Network animation using NetAnim
The simulation can be used to study wireless network behavior, mobility models, and network monitoring techniques in ns-3.
- Install NS-3 on your system (Version 3.36)
- Clone this repository:
git clone https://github.com/Hemantha-krishna/Wireless-Network-Simulation-with-NS3
- Navigate to the repository directory
- Build the simulation script:
./waf --run scratch/wireless-simulation
or./ns3 run scratch/wireless-simulation
- PCAP files are created in the scratch folder which can be analyzed using tools like Wireshark
- After the simulation is completed, you can view the animation using NetAnim
Feel free to modify the simulation parameters (e.g., number of nodes, mobility area, simulation time) in the main
function to explore different scenarios.