PAT (Port Address Translation)
A packet contains a:
- Data Payload (Layer 2)
- L3 Header (Layer 3)
- Contains
source address
anddestination address
- Contains
- L4 Header (Layer 4)
- Contains
source port
anddestination port
- Contains
NAT (Network Address Translation) only modify L3 header whereas PAT (Port Address Translation) modifies both L3 and L4 headers.
For example in here whent he packet cross the router, we modify both L3 and L4 headers.