Skip to content

zia0307/Network_Delay_Measurement_Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network Delay Measurement Tool using SDN (Ryu + Mininet)

Problem Statement

This project measures and analyzes latency between hosts using Software Defined Networking (SDN). It uses Mininet for network emulation and Ryu as the SDN controller.


Prerequisites

Before running this project, ensure the following are installed:

System Requirements

  • Ubuntu 20.04 / 22.04 (recommended)
  • Minimum 4GB RAM (for smooth Mininet execution)

Required Software

1. Python

  • Python 3.x installed
python3 --version

2. Mininet

  • Network emulator used to create virtual topology
sudo apt install mininet -y

3. Ryu Controller

  • SDN controller for managing switches
pip3 install ryu

4. Open vSwitch

  • Required for switch functionality
sudo apt install openvswitch-switch -y

5. Matplotlib

  • Used for plotting graphs
sudo apt install python3-matplotlib -y

6. iperf

  • Used for throughput measurement
sudo apt install iperf -y

Notes

  • Run Mininet scripts using sudo
  • Ensure the Ryu controller is started before running the analysis script

Setup Instructions

1. Start Ryu Controller

ryu-manager controller.py

2. Run Delay Analysis

sudo python3 delay_analysis.py

Features

  • ICMP ping-based delay measurement
  • RTT extraction and analysis
  • Comparison across different network topologies
  • Throughput measurement using iperf
  • Visualization using graphs

Output

  • RTT values (min, max, average)
  • Delay variation
  • Throughput results
  • Graph comparing topologies

Screenshots

controller logging delay output comparison graph


Explanation

The controller implements a learning switch using OpenFlow. When packets arrive, the controller learns MAC-to-port mappings and installs flow rules.

Delay is measured using ping, and RTT values are extracted and analyzed. Different topologies are used to compare delay across paths.


About

a delay analysis tool created using ryu and mininet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages