Skip to main content

NAT Explained - Network Address Translation

nat stands for network address translation and this is a service that is used in routers and its purpose is to translate a set of IP addresses to another set of IP addresses and the reason for having the nat service is to help preserve the limited amount of IP version for public IP addresses that we have available around the world when the IP version 4 address was created engineers didn't realize how big the internet will become because even though there were over 4 billion IP version 4 addresses available the engineers thought that that would be enough but obviously they were wrong so in order to prevent a shortage of public IP version 4 addresses engineers developed private IP addresses and network address translation now there are two different types of IP version 4 addresses there's public and there is private public IP addresses are publicly registered on the Internet you have to have a public IP address if you want to go on the internet and there are approximately 4 billion public IP addresses available so they are limited now private IP addresses are different private IP addresses are not publicly registered so you cannot directly access the internet with a private IP private IP addresses are only used internally such as inside a home or business they are not used out on the public Internet and your router is what assigns your internal devices a private IP so for example most homes and businesses are not going to have just one device that needs internet access chances are that they are going to have multiple devices that need access to the Internet so those devices need a public IP address if they want to access the Internet now you could contact your internet service provider and ask them for these additional public IP addresses for all of your devices but that's going to be more expensive unnecessary and more importantly it would also be a waste of public IP addresses and let's face it if every device in the world had their own public IP address we would have ran out of public IP addresses already so instead we can have our router assigned the devices inside our home or business private IP addresses and when our devices need to access the Internet their private IP address will be translated by NAT in the router to the one public IP address that we have been given so again this is what NAT does it translates a set of IP addresses to another set of IP addresses so not only does it translate private to public but also translates public to private because if a computer out on the internet wants to communicate with a computer on this private network then the public IP address needs to be translated by net to the private IP address for that computer now in the future we won't need NAT or private IP addresses and this is because of the new generation of an IP address called IP version 6 with IP version 6 every single device in the world will have its own public IP address so there is no need for IP address translation and this is because IP version 6 is able to produce over 340 undecillion IP addresses so that's the number 340 with 36 digits after it so with a number that huge we will never run out of IP addresses

Comments

Popular posts from this blog

BIOS, CMOS, UEFI - What's the difference?

what is the BIOS CMOS and UEFI so that's what we're going to talk about in this video now BIOS stands for basic input/output system the BIOS is firmware that's built into the motherboard that initializes the computer's hardware as the computer is being booted and then after it initializes the hardware it then searches for a boot device such as an optical drive or a storage drive to boot software such as an operating system so from the start when you first turn on the computer the computer does what's called a power-on self-test or post which is run by the bios it tests the computer to make sure all the requirements are met and if the hardware is working correctly before starting the operating system if the computer passes the test the internal speaker will make a short single beep which indicates that the computer has passed the test and is booting up normally however if there are no beeps or multiple beeps then that means that the computer has failed the test and s...

Transistors, How do they work ?

the invention of transistors revolutionized human civilization like no other technology at the heart of a smartphone lies a processor and this processor holds about two billion transistors what do these incredibly tiny devices do how do they work transistors can act like a switch with no moving parts they can amplify a weak signal in fact amplification is the basic function of a transistor first let's understand the basis of transistors we will come back to the application part later transistors are made of semiconductors such as silicon each silicon atom is bonded with four neighboring silicon atoms silicon has four electrons in its valence shell let's replace this silicon atom with a four-handed Smyly each hand holds one electron each one of these electrons goes for sharing with a neighboring silicon atom this is known as a covalent bond currently the electrons are in their valence band if the pure silicon has to conduct electricity the electrons have to absorb some energy an...

32 bit vs 64 bit

computer hardware and software can come in 32 or 64-bit versions the difference between a 32-bit and a 64-bit is the way that it handles memory the bit size refers to the memory that it can address a 32-bit system can reference 2 to the 32nd power bytes of memory which equals to about 4 gigabytes however a 64-bit system can reference 2 to the 64th power bytes of memory which equals to about 16 exabytes which is 4 billion times more memory than a 32-bit now that number is so huge that it's virtually unlimited because we will never need to use that amount of memory so in a computer in order for data or a program to run it needs to be loaded into Ram first so the data is stored on the slower hard drive and from the hard drive it's loaded into the faster Ram and once it's loaded into Ram the CPU can now access the data or run the program now in a 32-bit system since the maximum amount of memory that it can support is 4 gigabytes it may not be enough to hold all the data that th...