fix ns3 vanet parameter values - #108
Open
Muhammaduazir69 wants to merge 9 commits into
Open
Conversation
Root causes fixed: 1. Grid spacing too large (150m → 100m) - nodes were exceeding 250m communication range 2. Missing packet transmission tracking - added PhyTxBegin trace callback 3. No PacketsTx counter updates - implemented NotifyPacketTransmitted method Changes: - vanet-aodv-gym.cc: Reduced grid spacing, added PhyTxBeginTrace callback, connected PhyTxBegin trace - vanet-link-env.h: Added NotifyPacketTransmitted method declaration - vanet-link-env.cc: Implemented NotifyPacketTransmitted to track packet transmissions Impact: - Ensures nodes stay within communication range for proper packet delivery - Tracks both transmitted and received packets for accurate PDR calculation - Should now generate CSV files with proper RSSI, SNR, packet loss, distance, and speed values See FIXES_APPLIED.md for detailed explanation and rebuild instructions.
Author
|
fix ns3 vanet parameter values |
Major Enhancements: - Fixed critical node ID extraction bug (pos += 10 instead of 30) - Implemented real RSSI/SNR measurements using MonitorSnifferRx trace - Added multi-layer network monitoring (PHY + MAC + Queue) - Smart packet filtering for data vs control packets - Enhanced statistics: PDR, PLR, MAC collisions, queue congestion - Validated RSSI/SNR ranges for realistic measurements (-100 to -30 dBm, 0-40 dB) - Added comprehensive network statistics printer - Created detailed README with installation guide - Added .gitignore for temporary files - Removed old PyTorch model files to reduce repo size Technical Details: - MonitorSnifferRx callback provides accurate signal/noise measurements - IsDataPacket() filter excludes beacon/control packets - Global statistics tracking for PHY/MAC/Queue metrics - Enhanced trace connections: PhyTxBegin, MonitorSnifferRx, PhyTxDrop, PhyRxDrop, MacTxDrop, QueueDrop Dataset Generation: - CSV output now contains realistic RSSI/SNR/PacketLoss values - Real-time link quality metrics for ML training - Compatible with PyTorch neural network training pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix ns3 vanet parameter values