Skip to content

VidarHUN/jitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculate jitter (delay) between Forward and Reverse traffic

Currently it's only works if the file has two stream and no more or less.

Before you run it

You have to install these pip packages:

python -m pip install -U pip
python -m pip install -U matplotlib

How to start the program

python3 parse.py <file.csv> <src_ip> <dst_ip>

For example:

python3 parse.py tg2-no-1h.csv 10.2.0.17 10.2.0.11

How it works

  1. Read the csv file and parse it into a big 2d list
  • sublist elements:
    1. Packet arrival time
    2. Source IP
    3. Destination IP
    4. Timestamp
    5. Sequence number
  1. Sort and make math on forward and reverse traffic
  • math:
    Tick = 1 / 8000
    Expected_Arrival_Time = (N_Timestamp - First_Timestamp) * Tick
    Jitter = abs(Expected_Arrival_Time - Real_Arrival_Time) * 1000
    
  1. Make the plot

Example plot

Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages