Firewall monitors both incoming and outgoing network congestion and allow or restrict certain traffic depending on security requirements.  Network security has relied on firewalls for 25 years. They separate trustworthy internal networks from untrusted external networks like the Internet. Firewalls are hardware, software, or both.