Code Monkey home page Code Monkey logo

protocol-benchmark's Introduction

Transport Protocol (Layer 4) Benchmark

This is designed to be a generic network protocol benchmark tailored around specific use cases. It will generate some metrics around the performance of various network protocols under a number of simulated scenarios. As with all benchmarks, take all results with a grain of salt.

Metrics to track:

  • Latency: 1-way, RTT minimum/maximum/mean
  • Throughput: minimum/maximum/mean
  • Jitter: mean
  • Total number of sent/received packets: For reliable protocols, we expect these to be equivalent

Configurable settings:

  • Packet loss - % packets dropped
  • Latency - target latency +- thread sleep resolution
  • Jitter - delay amount to +- to the target latency

Initially, the tests will place some focus on a fast-paced multiplayer game scenario. e.g. FPS games, realtime simulations, etc.

Last thing to note, I'm going to use Rust's default UDP/TCP implementation for those benchmarks.

Protocols to test

Methodology

Each protocol implementation is going to run in a docker container configured using linux's built in Traffic Control (tc) command to simulate unfavorable network conditions. Each test will take place within a single process (multiple threads). The messages themselves will be serialized as JSON to allow for easy inspection. In reality, you would probably want to use something quite a bit more compact.

The follow conditions will be tested using eth0 network interface:

  • 60 hertz send/receive rate

Loss

  • Pristine
  • 10% packet loss
  • 25% packet loss
  • 50% packet loss

Latency

  • 10ms
  • 50ms
  • 200ms

Jitter

  • 0ms
  • 10ms
  • 50ms

Packet Size

  • Less than MTU (~1500 bytes)
  • Greater than MTU

protocol-benchmark's People

Contributors

jstnlef avatar

Stargazers

 avatar

Watchers

 avatar  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.