Week 4
NAT (Network Address Translation) and PAT (Port Address Translation) are two vital technologies we were essentially forced into adopting to overcome the shortcomings of IPv4 addresses. When IPv4 came out, it used a 32-bit system of numbers to represent a unique device id, sort of like a house address which gave us about 4.3 billion addresses to work with. However, when the internet started gaining popularity, everyone and their mother started claiming IP addresses left and right and created an issue where we would quickly be running out of addresses. To combat this, NAT and PAT were developed which allow one IP external Address to be used by several (potentially tens of thousands) internal private devices at once. PAT works in combination with NAT by assigning a port number to any traffic leaving the LAN and keeping note of it. NAT then changes the private internal IP address to the single public address assigned by the ISP and appends the port information from PAT to the IP packet...