User Tools

Site Tools


en:network_terms:network_address_translation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:network_terms:network_address_translation [2022-04-01-23-41] – ↷ Links adapted because of a move operation 7saturnen:network_terms:network_address_translation [2022-04-02-13-07] (current) – [Mechanism] 7saturn
Line 2: Line 2:
 For this article, and understanding of [[network address|network addresses]], [[subnet|subnets]] and [[Port|ports]] is required. For this article, and understanding of [[network address|network addresses]], [[subnet|subnets]] and [[Port|ports]] is required.
 ===== Reasons for NAT ===== ===== Reasons for NAT =====
-When communicating via the Internet, the [[TCP]]/IP protocols, along with [[UDP]] are the most used ones. There are two different flavors, the older IPv4 and the newer IPv6. Bot can basically be distinguished by the length the address of each [[Host]] has. V4 uses 32 bits, which translates to a maximum of 4'294'967'294 possible hosts (if all were in one big [[subnet]]).+When communicating via the Internet, the [[TCP]]/IP protocols, along with [[UDP]] are the most used ones. There are two different flavors, the older IPv4 and the newer IPv6. Bot can basically be distinguished by the length the address of each [[host]] has. V4 uses 32 bits, which translates to a maximum of 4'294'967'294 possible hosts (if all were in one big [[subnet]]).
  
 As you can imagine, 4 Billion Computers may sound a lot at first, but since nowadays many people have more than one computer device (one tablet, a smartphone, a PC, maybe a console, and you already have four devices in use, not counting the [[server|servers]] you are connecting to), this number quickly was identified as a little to short. IPv6 uses 128 bits of address space, which leads to a theoretical astronomical number of hosts of around 3 times 10 to the power of 38. That solves the problem with the address space once and for all. But as both protocols are still used, the old IPv4 still needed a solution for the problem of a lack of available addresses. If everyone had all the used devices on the public internet, the address space would have been exhausted years ago. The solution comes in form of a translation mechanism, that is usually facilitated by your router. As you can imagine, 4 Billion Computers may sound a lot at first, but since nowadays many people have more than one computer device (one tablet, a smartphone, a PC, maybe a console, and you already have four devices in use, not counting the [[server|servers]] you are connecting to), this number quickly was identified as a little to short. IPv6 uses 128 bits of address space, which leads to a theoretical astronomical number of hosts of around 3 times 10 to the power of 38. That solves the problem with the address space once and for all. But as both protocols are still used, the old IPv4 still needed a solution for the problem of a lack of available addresses. If everyone had all the used devices on the public internet, the address space would have been exhausted years ago. The solution comes in form of a translation mechanism, that is usually facilitated by your router.
 ===== Mechanism ===== ===== Mechanism =====
-The router takes the function of a gateway, meaning, all internet connections have to go through it. Your local network is separated from the rest of the internet. It is using its own [[subnet]], its own IP address space. Usually so-called [[..:games:private_addresses]] are used, that are not routed through the internet (making them technically not reachable over the internet, but only on the local network). This way, certain IP addresses can be re-used for every one at home. They don't interfere with the rest of the internet.+The router takes the function of a gateway, meaning, all internet connections have to go through it. Your local network is separated from the rest of the internet. It is using its own [[subnet]], its own IP address space. Usually so-called [[..:network terms:private addresses]] are used, that are not routed through the internet (making them technically not reachable over the internet, but only on the local network). This way, certain IP addresses can be re-used for every one at home. They don't interfere with the rest of the internet.
  
 But as this is kind of a separated, unreachable network, how do computers communicate to and with those, anyways? The answer lies in the Network Address Translation concept. Your router works as NAT. In principle, the following happens: Every package that is sent from your local network get's stripped of its source address (sender) and source port. Both are replaced with the address of the router on the other side, the internet, and another port. The router remembers which source address and port combination he gave which port on the internet side. But as this is kind of a separated, unreachable network, how do computers communicate to and with those, anyways? The answer lies in the Network Address Translation concept. Your router works as NAT. In principle, the following happens: Every package that is sent from your local network get's stripped of its source address (sender) and source port. Both are replaced with the address of the router on the other side, the internet, and another port. The router remembers which source address and port combination he gave which port on the internet side.
Line 20: Line 20:
 NAT mechanisms are not required for IPv6, as every host can have one or more (and usually has more than one) address at its disposable, making it addressable by itself also via the internet. A NAT is still not needed. Still, most routers block that kind of incoming communication anyways, as there are a security concerns when a computer is accessible directly from the world wide internet. But this is //not// the NAT (as there is never any translation of addresses involved), but simple blocking of communication. (This is far more close to a firewall, than the NAT is.) Many routers allow that to be turned off. Only do this, when you know what you are doing! When in doubt, only unblock the desired ports. (This is very often configured at the very same place in a router's configuration, as the NAT port forwarding.) NAT mechanisms are not required for IPv6, as every host can have one or more (and usually has more than one) address at its disposable, making it addressable by itself also via the internet. A NAT is still not needed. Still, most routers block that kind of incoming communication anyways, as there are a security concerns when a computer is accessible directly from the world wide internet. But this is //not// the NAT (as there is never any translation of addresses involved), but simple blocking of communication. (This is far more close to a firewall, than the NAT is.) Many routers allow that to be turned off. Only do this, when you know what you are doing! When in doubt, only unblock the desired ports. (This is very often configured at the very same place in a router's configuration, as the NAT port forwarding.)
  
-[ [[..:games_database]] ] [ [[..:game_related_terms]] ] [ [[..:network_terms]] ]+[ [[..:Games Database]] ] [ [[..:Game Related Terms]] ] [ [[..:Network Terms]] ]
en/network_terms/network_address_translation.1648849308.txt.gz · Last modified: 2022-04-01-23-41 by 7saturn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki