Knockout drums are vessels that separate entrained liquid droplets or slugs from a gas stream before it enters downstream equipment such as flare stacks or compressors. They protect equipment from liquid carryover, surge damage, and unstable operation.