W9L2 - ALG and NAT Flashcards
RFC 1918 Private Address Space
On your own network you could have the same ip address as another person on their home network. However these couldn’t be routed on the internet. There is a translation layer on the access point to convert said address to a routable one when needed.
ALG
Application Level Gateways
How does ALG work?
Like a proxy, you create a connection with a server and that server creates a connection with an application on your behalf. It will have a private address you can connection to and a public address that the internet can connect to
NAT
Network Address Translation
How does NAT work?
Instead of establishing a connection on your behalf, it rewrites the packets that you send to have a public address. Will rewrite the port numbers if necessary. Will keep a mapping in order to convert back
Advantages of NAT
Simple to implement
Usable with UDP, TCP, and ICMP packets
Does not require separate implementation for each protocol like ALG
Disadvantages of NAT
Can’t connect private to private (peer to peer)
Does not allow inbound connections (port forwarding needed)
Single point of failure - if nat gateway breaks then all connections go with it
Like a proxy, you create a connection with a server and that server creates a connection with an application on your behalf. It will have a private address you can connection to and a public address that the internet can connect to
How does ALG work?
On your own network you could have the same ip address as another person on their home network. However these couldn’t be routed on the internet. There is a translation layer on the access point to convert said address to a routable one when needed.
RFC 1918 Private Address Space