Giter Site home page Giter Site logo

initcwndcheck's Introduction

incwndcheck

Test initcwnd for any http endpoint (Linux only).

What this basically does is: make a tcp connection and send a GET request. From this moment onwards, it stops acknowledging packets from the remote host. This allows us to measure how much data the server is willing to send unacknowledged.

Read more about initial congestion windows : http://www.cdnplanet.com/blog/tune-tcp-initcwnd-for-optimum-performance/

Run the test online: http://www.cdnplanet.com/tools/initcwndcheck/

Usage

go get github.com/turbobytes/initcwndcheck
go build github.com/turbobytes/initcwndcheck
wget -O homepage.html https://github.com/turbobytes/initcwndcheck/raw/master/homepage.html
sudo ./initcwndcheck

In browser open http://127.0.0.1:8565/

JSON API

/runtest?url=http%3A//www.cdnplanet.com/

Limitations

  1. Works on Linux only, because some iptables commands are hardcoded in the code. In future I will split that to platform specific modules.
  2. We send receive window of 65535
  3. Works on HTTP only. No HTTPS/TLS support at this time.
  4. Server might send a smaller payload than expected (e.g. in case of error). Inspect hexdump to be sure

Coming Soon

A CLI tool to run one-off tests

initcwndcheck's People

Contributors

sajal avatar yurijmikhalevich avatar

Watchers

 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.