A muzzle brake or recoil compensator is a device connected to, or a feature integral to the construction of, the muzzle or barrel of a firearm or cannon that is intended to redirect a portion of propellant gases to counter recoil and unwanted muzzle rise.[1] Barrels with an integral muzzle brake are often said to be ported.