How Network Address Translation Works

How Network Address Translation Works


Explanation of what Network Address Translation is, how it works and why we need it to keep the internet growing. IP version 4 and 6 are also discussed.
Closed Caption:

in this video I'll talk about network
address translation how it works and why
we need it but first let's hear a bit of
backstory
where do these little baby IP addresses
come from anyways
back in the late seventies a couple of
collaborative researchers was thinking
about how long IP addresses should be
why is this important you have to
consider that in every data packet we
have to encode the center IP and the
receiver IP if we only reserve a few
bits to encode an IP address
we can keep packet size is small however
will also have few IP addresses to hand
out to people
if on the other hand we choose to have
lots of bits to encode an IP address
will have lots of IP addresses to hand
out but will also have huge packets
which increases the communication
overhead
so as you can see there's a bit of a
trade-off going on here
you can either have small packets or
lots of IP addresses they ended up
deciding that they go with 32 bits for
an IP address that left them with
roughly 4.2 billion IP addresses you
have to consider that back then the
internet which wasn't even called the
internet back then was just a toy for
academics it was definitely not meant
for regular people like you and me and
that's what's known today as IP version
4
now hang on a second let's do a bit of
math here we have 4.2 billion IP
addresses to hand out but we also have 7
billion people living on this planet as
of 2012 and also consider that each of
those seven billion people may want to
use multiple devices to access the
internet so yeah we have a bit of a
problem on our hands
what are we going to do about this now
because clearly having only 4.2 billion
machines on the internet is not going to
be an option we have to figure something
out
and there is a fix but it's as you'll
see a bit of a workaround let's keep it
at that there is in fact a way that we
can keep using IP version 4
and get more machines on to the internet
here's a typical home network setup
this is John's laptop this is james
laptop and this is Jane smartphone
they're all connected to the home router
that home router in its turn is
connected to the internet when you
register with your isp you get to use an
IP address that is accessible throughout
the internet and that's assigned to your
home router so in this case we have
twelve . thirteen . 14 . 15 assigned to
the home router
this is a public IP address that
theoretically anyone on the internet
consent packets to our laptops and smart
phone also get their own IP address but
instead of getting one of those 4.2
billion public IP addresses they get a
private IP address that private IP
addresses assigned to them by the home
router and is not accessible from the
internet now with these IP address look
familiar to you that's probably because
they are
this is one of two ranges that are
reserved for private networks all
addresses starting with 192 . 168 are
reserved for private networks as well as
all addresses that start with the number
10
you can use these IP addresses without
having to worry that some random web
server already uses that IP address
they can because it specifically
reserved for private networks
now let's consider the connection from
James laptop for a second
James laptop has an IP address of one
ninety two dot one sixty eight dot one .
3
here's an example scenario where James
laptop wants to know what the current
whether it's in taxes and to get this
information it will try to contact the
server at 40 . thirty . 20 . 10 to get
that information to reach this web
server change the laptop will have to go
through the home router through the
internet and finally then
arriving at the web server first change
the laptop has to send out a packet
requesting the information
it says what's the current temperature
in san antonio texas
now the message here isn't really
important the web server should know
what to do with that and we won't get
into that right now but what you should
know is that there is a source IP
address here with the source port and a
destination IP address with a
destination port in this case its port
80 which is frequently used for HTTP
traffic
now let's send this package on its way
shall we
when it arrives at the web server the
web server will process the incoming
requests and try to formulate a reply
the reply packet will be addressed to
the center but in this case because it
was sent from 192 168 1 . 3
it will not be reachable because it's a
private IP address
so what do we do now let's rewind that
tape for just a second
James laptop sends out a packet
requesting the current temperature and
san antonio taxes it gets sent along to
the home router but instead of sending
it right over the Internet
the home router does something that's a
little bit sneaky when that packet
re-emerges you'll notice that the source
IP address has been changed
this is not the only thing that the home
router does in addition it also creates
an entry in the net forwarding table now
we'll talk about net forwarding table
again in just a second but for now all
you have to remember is that this thing
allows us to know which packets are to
be sent and James laptop when they come
in and which packets are to be sent to
that smartphone or John's laptop
moving right along the packet travels
over the internet and arrives at the web
server the web server will now create a
reply packet and will notice that the
destination IP address is no longer
private
no instead
sent to the public IP address of our
home router on that specific port now
that our home router has received the
response it's time for another tiny lie
it creates a packet that looks as if it
was a dress from the web server directly
to James laptop which is not what
happened
but that's all James laptop needs to
know because it it doesn't care about
how it got there
it just wants to get the packet and get
this over with
but how does it know where to send that
package just received the answer is in
the net forwarding table
we just received that packet on poor 24
604
and that means if we look at our net
forwarding table that we have to change
the IP address on the private side to
one ninety two dot one sixty eight dot
one not three on that specific port over
there in the forwarding table
James laptop receives the packet and the
rest is history
James laptop doesn't have to care about
any of that NAT stuff
the home router completely handles it
for James laptop and it is completely
transparent so James laptop doesn't have
to worry about public and private IP
addresses know this is something the
router fixes and James laptop doesn't
have to worry about it
of course ideally every computer would
have its own public IP address which is
why we're slowly but well actually just
slowly moving over to IP version 6
remember how I p version four had four
point two billion IP addresses at its
disposal
well IP version 6 has a lot more and i
do mean a lot
seriously trying noting 34 and then
followed by thirty seven zeros and
that's how much ipv6 addresses we have
approximately
that is a lot if we can give every
computer its own public IP address
we won't be needing network address
translation anymore
this means that router skin once again
focus on there
the core business which is routing
packets not doing awkward switcheroo
tricks now I can hear you saying this is
nice and all but why haven't we switched
yet this IP version 4 thing is a mess we
only have four point two billion IP
addresses and that as clumsy as hell
well it's not that simple we have a lot
of Internet infrastructure that was
built up over the years and they all
work with IP version 4
so we have laptops desktops home routers
but also stuff on the ISB side and web
servers and they all work with IP
version 4 all these devices need to have
hardware and software that supports IP
version 6 before we can entirely switch
over and that is a huge task
just to give you an idea the IP version
6 standard was finalized in December of
1998 and yet here we are 14 years later
and was still running on IP version 4
you can see how this is one hell of a
task
all righty if there's anything you'd
like to see explain please do let me
know in the comments below thanks for
watching and I'll see you next time

Video Length: 10:05
Uploaded By: PieterExplainsTech
View Count: 344,192

Related Software Products
Translator Internet
Translator Internet

Published By:
ANTADIS

Description:
Translator Internet is a Toolbar for MS Internet Explorer. It allows you to translate in real time any web pasge from one language to another. You only have to select languages and TI does all the work for you! Automatic dictionary updates.


Related Videos
Google Translate
Google Translate

Google translate can make life interesting. Watch full episodes of Studio C at http://byutv.org/studioc. Like us on Facebook: https://www.facebook.com/StudioCtv hr / bClosed Caption:/b hey you look happy what's up I have a girlfriend really congratulations where did you two meet we haven't met in person but we've been chatting online congratulations less fish gosh ever since you got a girlfriend you talkbr ...
Video Length: 06:26
Uploaded By: Studio C
View Count: 2,350,443

How to Translate from English to Hindi Online? Hindi video by Kya Kaise
How to Translate from English to Hindi Online? Hindi video by Kya Kaise

http://www.kyakaise.com How to Translate from English to Hindi online? Hindi Video Internet par Angrezi se Hindi mein anuvaad kaise kare? इंटरनेट पर अंग्रेजी से हिंदी में अनुवाद कैसे करें? Subscribe to our channel: http://goo.gl/9DuhRf 'Kya Kaise' ko subscribe karne ke liye yahan click karein: http://goo.gl/9DuhRf 'क्या कैसे' के यूट्यूब चैनल को सब्सक्राइब करने के लिए यहाँ क्लिक करें http://goo.gl/9DuhRf ► Facebook: www.facebook.com/KyaKaise ► Twitter: ...
Video Length: 05:54
Uploaded By: Kya Kaise
View Count: 104,321

How to Bypass School Internet Filters & Restrictions in 5 simple steps!
How to Bypass School Internet Filters & Restrictions in 5 simple steps!

A video to show how to get past school internet filters and onto blocked websites! Like, comment and subscribe! Here are any specific websites I used: Google Translate - http://translate.google.co.uk/ PROMT - http://www.online-translator.com http://anonymouse.org/ If you have any questions please leave them in the comments section below! The steps: 1) HTTPS:// 2) Caching 3) Finding the Ping 4) Translating 5) Anonymousebr ...
Video Length: 06:12
Uploaded By: Techo536
View Count: 75,904

ili Real-time Wearable Translator without WiFi/3G/4G
ili Real-time Wearable Translator without WiFi/3G/4G

Japanese Company ili shows the wearable translator on CES2016, don’t need Wi-Fi, 3G/4G or other Internet connection, just speak and press the button, you can get the real-time transaltion.The 1st generation will be ready on Q2 2016 with English, Japanese, Chinese conversation supported, next generation will have French, Thai, Korean; Spanish, Italian, Arabic will be ready in 3nd generation. hr / bClosed Caption:/b this is the real time wearable translator by ...
Video Length: 02:19
Uploaded By: ARMdevices.net
View Count: 58,171

Use Google Translator Without Internet
Use Google Translator Without Internet

www.techzada.com How to use Google Translate offline Google Translate for Android typically requires an active Internet connection for it to work. This allows it to translate while saving space on your device by referring to online dictionaries. However, in the event that there's no network available and you desperately need to translate something, you can still use the Google Translate app offline. here is a guide on how to use Google Translate offlinebr ...
Video Length: 03:15
Uploaded By: Tech Zaada
View Count: 24,834

Use Google Translate offline (2014)
Use Google Translate offline (2014)

Google Translate for Android typically requires an active Internet connection for it to work. This allows it to translate while saving space on your device by referring to online dictionaries. However, in the event that there's no network available and you desperately need to translate something, you can still use the Google Translate app offline. To do so, you'll need to download the languages you need while you have an internet connection.
Video Length: 04:41
Uploaded By: Gusrix
View Count: 18,387

Ace Translator 10.5.3 FULL VERSION DOWNLOAD
Ace Translator 10.5.3 FULL VERSION DOWNLOAD

DOWNLOAD LINK HERE: http://bit.ly/18nRIDY ========================================== The best translating program ever made. Much better than famous Google translate. Ace Translator employs the power of Internet machine language translation engines, and enables you to easily translate Web contents, letters, chat, and emails between major International languages. Keep in mind that in order to use the program you'll need an active Internet connection because, just like the ...
Video Length: 02:04
Uploaded By: BestFreeGiveaways
View Count: 14,550

speaking dictionary Burmese [Myanmar] English electronic text translator pocket language teacher
speaking dictionary Burmese [Myanmar] English electronic text translator pocket language teacher

100% Offline product - NO internet connection needed ! www.trano.com - Burmese [Myanmar] English Dictionary Speaking Text Translator Electronic Pocket Language Teacher Talking Pocket Electronic Digital Portable Text Translator Trano* instant cross translation. language teacher, it runs fully autonomously no internet connection is necessary.. Expandable - 80+ languages, revolutionary Expandable pocket text translator D-11, T-11, T-22, TRANO* 4 in 1 models: - Burmese [Myanmar] x ...
Video Length: 11:20
Uploaded By: TranoTranslator
View Count: 12,640

Copyright © 2025, Ivertech. All rights reserved.