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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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