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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

why do we need NAT

A

there arnt enough public IP addresses to give to all devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

pros of NAT

A
  • only 1 IP needed from ISP
  • private IP can change without telling the world
  • security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cons

A
  • IPv6 could be a better solution
  • violates end-to-end arg
How well did you know this?
1
Not at all
2
3
4
5
Perfectly