user1386966
user1386966

Reputation: 3392

how the FireWall knows if the transportation is UDP or TCP?

I'm not quite sure how the firewall can tell what transportation is being passed - TCP\UDP? also - when I have statefull VS stateless FW - I know that there is the difference when using TCP, but what about UDP? thanks alot! :)

Upvotes: 2

Views: 185

Answers (2)

Fragmentation Needed
Fragmentation Needed

Reputation: 224

The header of the packets are completely different, TCP is much bigger for example. A stateful firewall needs to intercept the TCP headers to map the packets to its state table, but also stateless firewalls sometimes have techniques implemented to recognize valid TCP or UDP headers. Most home routers (broadband/wireless) make use of this when you are using port forwarding to distinguish between both protocol versions.

Upvotes: 1

Paul Dardeau
Paul Dardeau

Reputation: 2619

Have a look at https://en.wikipedia.org/wiki/IPv4#Header and see the Protocol field.

Upvotes: 2

Related Questions