Giter Club home page Giter Club logo

fq-detection-simple's Introduction

Detect Fair Queuing on a connection

To detect fair queuing (also called flow queuing) on a connection, run the server and the client script. No dependencies needed.

  1. python server.py on the server. The server is the computer conducting the test and outputting the results.
  2. python client.py -s <ip_address_or_name_of_server> on the client.

The test checks whether there is fair queuing when sending data from the server to the client. At the end of the test (should take a couple of seconds) the server output will indicate one of three cases:

  • There's fair queuing
  • There's first-come first-served
  • The test was inconclusive because the link could not be saturated (CPU too weak)

fq-detection-fast has the exact same functionality but is written in C so it is about 2 times faster than the Python version in this repo. This means it can detect fair queuing at higher bandwidths.

Test suite

The measurement tool can detect the absence/presence of fair queuing with an accuracy of close to 100% on a range of delays and link capacities. This can be verified using the included test suite (requires mininet).

  • Run sudo python test_utils/network_sim.py --qdisc fq_codel to evaluate the accuracy for fq_codel (fair queuing)
  • Run sudo python test_utils/network_sim.py --qdisc fq to evaluate the accuracy for fq (fair queuing)
  • Run sudo python test_utils/network_sim.py --qdisc cake to evaluate the accuracy for cake (fair queuing)
  • Run sudo python test_utils/network_sim.py --qdisc pfifo to evaluate the accuracy for pfifo (first-come first-served)

You can add the --iperf flag to simulate cross traffic (requires iperf3).

Limitations

Using python 3.8 and an Apple M1 CPU, more than 1 Gbit/s of data can be sent. If your bottleneck link capacity is higher than that or your CPU is weaker, the test might fail to saturate the link and return an inconclusive result.

Miscellaneous

To do the test over an IPv6 connection, add the --ipv6 flag at the client.

There's a congestion control algorithm which tests for fair queuing and takes advantage of it, if it is present: https://github.com/muxamilian/fair-queuing-aware-congestion-control

This measurement tool builds on earlier work: https://github.com/CN-TU/PCC-Uspace

Short video

fq_detected.mov

fq-detection-simple's People

Contributors

muxamilian avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

fq-detection-simple's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.