Hi there! 👋 Welcome to the MANET Simulation Project! This project is all about exploring how Mobile Ad Hoc Networks (MANETs) work using two popular routing protocols: AODV (Ad hoc On-Demand Distance Vector) and DSDV (Destination-Sequenced Distance Vector). Ready to dive in? Let’s get started!
Here’s what makes this project awesome:
- Dynamic Node Movement: Nodes move randomly, just like real-world mobile networks!
- Routing Protocols: Compare the performance of AODV and DSDV in real time.
- Visualizations: Watch how data packets flow between nodes using cool animations.
- Performance Metrics: Get stats like:
- Number of successful ping replies. 📩
- Number of lost pings. ❌
Here’s what you’ll find in this repo:
omnetpp.ini
: The brain of the simulation. Configures mobility, routing protocols, and visualization.ManetProcolsShowcase.ned
: The heart of the network. Defines all the nodes and their roles.
Before you start, make sure you have:
- OMNeT++ (v5.x or later) installed.
- The INET Framework set up in OMNeT++.
- Clone this repo:
git clone https://github.com/daniadrian/manet.git cd manet2
- Open the project in OMNeT++ IDE.
- Build the project.
- Run the simulation! 🎉
- Open omnetpp.ini in the OMNeT++ IDE.
- Choose your configuration:
- Aodv: Simulates the AODV protocol.
- Dsdv: Simulates the DSDV protocol.
- Hit the Run button, sit back, and enjoy the show! 🍿
- Explore the metrics:
- Ping Replies: Check how many pings successfully reached their destination.
- Ping Losses: See how often the network struggled.
Want to tweak things? Here’s how:
- Change Node Speeds: In omnetpp.ini, adjust the speed range:`
*.node*.mobility.speed = uniform(5mps, 15mps)
- Modify Simulation Time: Extend or shorten the simulation:
sim-time-limit = 1000s
- Experiment with Protocols: Play around with AODV and DSDV parameters:
- AODV :
*.*.routingApp.activeRouteTimeout = 1s
- DSDV :
*.*.routing.helloInterval = 100s
- AODV :
This simulation tracks:
- ✅ Ping Replies: Successfully delivered pings.
- ❌ Ping Losses: Packets that didn’t make it. Visualizations make it super easy to see these in action. Different protocols are color-coded:
- AODV RREQ: 🟡 Yellow
- Ping Messages: 🔵 Blue
- AODV RREP: ⚫ Dark Slate Gray
- AODV RERR: 🔴 Red
- Hello Messages: 🟢 Green
Got ideas to make this project even better? Awesome! Feel free to:
- Open an issue.
- Submit a pull request.
- Share your feedback. Your contributions make a difference! ❤️
This project is licensed under the Creative Commons Legal Code CC0 1.0 Universal. See the LICENSE file for details.😉
Got stuck or have questions? No worries! Create an issue or reach out. We’re here to help you out.
Happy simulating and have fun exploring the world of MANETs! 🌐✨