Git Product home page Git Product logo

bufferbloat's Introduction

Instructions: sudo ./run.sh

Max Queue Size: 20 packets Mean Transfer Time: 3.04112 Standard Deviation: 0.470129541297

Max Queue Size: 100 packets Mean Transfer Time: 7.64675 Standard Deviation: 0.98010557467

TCP congestion control algorithm attempts to achieve full utilization of the links by increasing the size of the congestion window until a packet is dropped, i.e. the output buffer at the bottleneck link is full. In our case, the long lived tcp connection will fill the buffer at the switch, regardless of its size. When a new TCP connection is created to fetch a webpage, its tcp packets are placed at the end of this queue. The longer the queue, the longer each packet must wait to be routed to the next hop, and the longer the webpage fetch takes.

1000 packet max queue size 1500 byte MTU 100 Mb/s drains

1500 * 1000 * 8 / (100 * 10^6) = 0.12 seconds

RTT ~= 6 * QUEUE_SIZE + C C = Propagation Delay + Packetization Delay ~= 20ms

One way to mitigate buffer bloat would be to differentiate TCP flows based on the Differentiated Services flags in the TCP header. This would only mitigate the problem by using multiple smaller buffers.

Another way to mitigate the problem is to employ active queue management algorithms. These algorithms intelligently choose to preemptively drop or mark packets prior to the queue filling up, preventing a long lived TCP flow from blocking other flows.

bufferbloat's People

Contributors

jvimal avatar hironaka avatar

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.