Watch this video on YouTube
A firewall accepts or rejects the packet on the basis of destination port and applications. What does the firewall check to determine the port and application at the transport layer?