Skip to content

HasnainMARS/Python-Base-Advanced-Router-Performance-Analyzer-with-Real-Time-Graphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Advanced Router Performance Analyzer with Real-Time Graphs

Python Matplotlib Status

πŸš€ An educational tool to analyze router performance by safely sending requests, monitoring responses, and visualizing system usage with real-time graphs.


⚠️ Disclaimer

This project is for educational and diagnostic purposes only. Do NOT use it on networks, routers, or devices you do not own or lack explicit permission to test. Unauthorized testing may be illegal and disruptive.


✨ Features

  • 🌐 HTTP request testing across common router endpoints

  • πŸ”Œ Telnet (port 23) connection attempts

  • πŸ“‘ ICMP ping requests

  • πŸ“Š Real-time system monitoring with matplotlib:

    • CPU usage
    • Memory usage
    • Network throughput (sent/received)
    • Requests per second
  • πŸ“ˆ Detailed performance report at the end of each test


πŸ“¦ Installation

Clone this repository:

git clone https://github.com/HasnainMARS/Python-Base-Advanced-Router-Performance-Analyzer-with-Real-Time-Graphs.git
cd Python-Base-Advanced-Router-Performance-Analyzer-with-Real-Time-Graphs

Create a virtual environment (recommended):

conda create -n router-test python=3.10
conda activate router-test

Install dependencies:

pip install -r requirements.txt

or manually:

pip install requests psutil matplotlib

▢️ Usage

Edit the target IP address in main() of advanced_router_analyzer.py:

target_ip = "1354.1589.16.21"  # replace with your router IP

Run the analyzer:

python advanced_router_analyzer.py

βœ… While the test runs:

  • A live graph window will show resource usage and request rates.
  • The terminal will display real-time stats.
  • A final performance report will print at the end.

πŸ“Š Example Output

Console output snippet:

πŸš€ STARTING COMPREHENSIVE ROUTER PERFORMANCE TEST
🎯 Target: 132.1558.145.12 <<<<<<Replace with your IP
⏱ Duration: 30 seconds
πŸ• Start Time: 2025-09-29T10:42:00
======================================================================
πŸ“Š MONITOR: CPU: 15% | RAM: 42% | REQ/s: 35.00 | NET: ↑12.1KB/s ↓10.7KB/s
...
πŸ“ˆ Test complete! Graphs will remain open for a short while...

πŸ“Š COMPREHENSIVE ROUTER PERFORMANCE REPORT
======================================================================
⏱ Test Duration: 30.15 seconds
πŸ“Š Total Operations: 1,050
πŸ“ˆ Operations/Second: 34.8
βœ… Success Rate: 94.5% (993/1,050)
...
πŸ† ROUTER PERFORMANCE ASSESSMENT:
πŸ’š VERY GOOD - Strong consumer router
======================================================================

πŸ“ Project Structure

router-analyzer/
β”œβ”€β”€ advanced_router_analyzer.py   # main script
β”œβ”€β”€ requirements.txt              # dependencies
└── README.md                     # this file

πŸ›  Requirements


🚧 Roadmap

  • Add CLI arguments (--ip, --duration, --workers)
  • Save performance logs to CSV/JSON
  • Export graphs to PNG automatically

πŸ“œ License

MIT License β€” free to use, modify, and share. Use responsibly.


πŸ™Œ Contributing

PRs are welcome! If you have improvements (e.g., better graphs, safer tests, logging), open a pull request.


πŸ’‘ Educational Insights

  • Real-time graphs visualize system resource usage during load.
  • CPU spikes = processing load on your computer.
  • Memory usage shows script footprint.
  • Network graphs illustrate request/response patterns.
  • Final report helps understand router resilience under stress.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published