Testing distributed systems under hard failures like network partitions and instance termination is critical, but it's also important we test them under less catastrophic conditions because this is what they most often experience. Comcast is a tool designed to simulate common network problems like latency, bandwidth restrictions, and dropped/reordered/corrupted packets. It works by wrapping up some system tools in a portable(ish) way. On BSD-derived systems such as OSX, we use tools like ipfw and pfctl to inject failure. On Linux, we use iptables and tc. Comcast is merely a thin wrapper around these controls. Windows support may be possible with wipfw or even the native network stack, but this has not yet been implemented in Comcast and may be at a later date. On Linux, Comcast supports several options: device, latency, target/default bandwidth, packet loss, protocol, and port number.

Features

  • To shape traffic in BSD-derived systems, create an ipfw pipe and configure it
  • You can control incoming and outgoing traffic separately for any specific host or network
  • Comcast will determine the system commands to execute, log them to stdout, and execute them
  • The default bandwidth specified will apply to all egress traffic
  • Comcast supports several options like device, latency, target/default bandwidth, etc.
  • Designed to simulate common network problems like latency, bandwidth restrictions, etc.

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Comcast

Comcast Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Comcast!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Build Tools, Go Networking Software

Registered

2021-08-11