NAT Flashcards
(4 cards)
1
Q
what is NAT
A
- network address translation
- translates private IP and port to public IP and port
- all devices in a LAN share 1 public IP address
- they all have their own private IP addresses.
- when they send a datagram to the internet they send src IP = their private IP and src port = a port number
- the gateway router makes an entry into the NAT table to translate this into the public IP and gives it a new port number.
- then when a response comes back to the gateway router, it can use the NAT table and the port to translate that back into the private IP and port
2
Q
why do we need NAT
A
there arnt enough public IP addresses to give to all devices
3
Q
pros of NAT
A
- only 1 IP needed from ISP
- private IP can change without telling the world
- security
4
Q
cons
A
- IPv6 could be a better solution
- violates end-to-end arg