SlideShare a Scribd company logo
Network Address
Translation
Vuong Ngoc Anh
Why NAT?
• Network Address Translation (NAT) resolves the problem of
lacking IP addresses among network devices communication
over the Internet.
• NAT allows a single device (router or firewall) to intermediate
between the private and public networks by translating
unregistered IP address into registered IP address.
• Locate at network layer.
Concepts around NAT
• Source address, destination address: are included in the
packet’s IP header, identify IP address of two machines that
are exchanging data.
• Source port, destination port numbers: the numbers assigned
for two computers at each end to open way (port) for data
exchange. Port numbers are included in the packet’s IP header.
• Address translation table: a list of unique, non-unique IP
addresses and port numbers written by the router.
• Stub domain: a LAN network with registered IP addresses.
Dynamic NAT
• A limited number of IP addresses is given to LAN network
devices. There are a number of machines without unique IP
addresses.
• A computer (A) without unique IP address try to connect to
another computer outside of the network (B).
• The IP address of A is written into the router’s address
translation table. Its address is replaced with an available
unique IP addresses in the network.
• Packet coming from B to A: destination IP address is checked
to identify the recipient computer.
• The router checks the address translation table again and
change the address to the original non-unique IP address.
• If no match finds, the packet is dropped.
Overloading
• Multiplexing: concurrent connections are allowed between
computers of different TCP/UDP ports.
• A computer (A) without unique IP address try to connect to
another computer outside of the network (B).
• The IP address and port number of A is saved into the address
translation table. Its address is replaced with the IP address of
the router. Port number is replaced with the place that A’s
information is stored in the address translation table.
• Destination port of B’s packet is checked to traced back the
address of A in the address translation table. Original address
and port are then changed back.
• The same port number is then used for the next connection
between A and B. If the place is not accessed again before a
certain amount of time, the entry is removed.
Proxies
• Proxy: any device that stands between the client and server
(mostly used in Web). Clients make requests to the proxy, then
the proxy sends request to Web server on behalf of the client.
• Proxy stores frequent visited website into local hard disk and
load them when client comes back instead of downloading all
data once again from the remote server (caching proxy
servers).
• If more than one client requests from the same Web server,
proxy will make one request and distribute the data responds
to all the client.
• Unlike NAT, proxy is not transparent operation. It must be
explicitly supported by its clients (e.g. by configuring web
browser to use proxy).
Security and administration
• Automatically provides firewall-style protection between
internal and external network: no connection from outside is
allowed unless contact originates from internal devices.
• Extensive filtering and traffic logging: filter contents viewed by
internal machines and report with a log file.
• The involvement of NAT is transparent with both computers at
each end.
• Make network administration a lot more easier, e.g. when
moving web service to another host.
• Easy changes to made to internal network as the external IP
addresses to deal with is either router’s or a list of global
addresses.
Multi-homing
• Multi-homing = multiple connection
• The load of data packet is distributed through multiple
connections to reduce the risk of failure from single
connection and decrease wait times.
• Different ISPs that assign different range of IP addresses are
used. Routers in multi-homing network uses IBGP (Internal
Border Gateway Protocol) on the stub domain side and EBGP
(External Border Gateway Protocol) to communicate with
other routers.
• As one of the connection to an ISP fails, data is rerouted to
other router.
How about networking games?
• NAT poses problem to network game development.
• Generally NAT blocks all incoming packets and remote
computers are unable to initiate contact to local computers,
which is bad for peer to peer games.
• To overcome this people needs to manually configure port
forwarding or giving first contact from inside. Or use NAT
punchthrough.
• Read more about NAT punchthrough:
http://www.raknet.net/raknet/manual/natpunchthrough.html
Reference
• NAT Punchthrough. (n.d.). Retrieved November 8, 2013, from
Raknet:
http://www.raknet.net/raknet/manual/natpunchthrough.html
• Network Address Translation (NAT). (n.d.). Retrieved
November 8, 2013, from Vicomsoft:
http://www.vicomsoft.com/learning-center/network-addresstranslation/
• Tyson, J. (n.d.). How Network Address Translation Works.
Retrieved November 8, 2013, from HowStuffWorks:
http://computer.howstuffworks.com/nat.htm
• Phifer, L. (n.d.). The Trouble With NAT. Retrieved from Cisco:
http://www.cisco.com/web/about/ac123/ac147/ac174/ac182
/about_cisco_ipj_archive_article09186a00800c83ec.html
• Unity3D forum

More Related Content

What's hot

IPv4 and IPv6
IPv4 and IPv6IPv4 and IPv6
IPv4 and IPv6
saurav kumar mourya
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network pptextraganesh
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of Gateway
Naveen Karn
 
IPv4
IPv4IPv4
IPv6 next generation protocol
IPv6 next generation protocolIPv6 next generation protocol
IPv6 next generation protocol
Rupshanker Mishra
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
NetProtocol Xpert
 
Dns
DnsDns
Domain name system
Domain name systemDomain name system
Domain name systemDiwaker Pant
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
Varinder Singh Walia
 
Presentation on Domain Name System
Presentation on Domain Name SystemPresentation on Domain Name System
Presentation on Domain Name System
Chinmay Joshi
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
Gurjot Singh
 
Presentation on ccna
Presentation on ccnaPresentation on ccna
Presentation on ccna
HoneyKumar34
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
ThousandEyes
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentation
muhammad amir
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
Dawood Faheem Abbasi
 
Ip addressing
Ip addressingIp addressing
Ip addressing
sid1322
 

What's hot (20)

IPv4 and IPv6
IPv4 and IPv6IPv4 and IPv6
IPv4 and IPv6
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of Gateway
 
IPv4
IPv4IPv4
IPv4
 
IPv6 next generation protocol
IPv6 next generation protocolIPv6 next generation protocol
IPv6 next generation protocol
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
 
Dns
DnsDns
Dns
 
ipv6 ppt
ipv6 pptipv6 ppt
ipv6 ppt
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
Intrusion Prevention System
Intrusion Prevention SystemIntrusion Prevention System
Intrusion Prevention System
 
Acl
AclAcl
Acl
 
Tcp
TcpTcp
Tcp
 
Presentation on Domain Name System
Presentation on Domain Name SystemPresentation on Domain Name System
Presentation on Domain Name System
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
 
Presentation on ccna
Presentation on ccnaPresentation on ccna
Presentation on ccna
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentation
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 

Similar to Network address translation

Internet architecture protocol
Internet architecture protocolInternet architecture protocol
Internet architecture protocol
GLIM Digital
 
Computer network coe351- part3-final
Computer network coe351- part3-finalComputer network coe351- part3-final
Computer network coe351- part3-final
Taymoor Nazmy
 
Nat cisco
Nat ciscoNat cisco
Nat cisco
moonmanik
 
CCN CEP.pptx
CCN CEP.pptxCCN CEP.pptx
CCN CEP.pptx
NOOR69810
 
Computer Networks basics
Computer Networks basicsComputer Networks basics
Computer Networks basics
BiplabaSamantaray
 
networkaddresstranslation-160909142440.pptx
networkaddresstranslation-160909142440.pptxnetworkaddresstranslation-160909142440.pptx
networkaddresstranslation-160909142440.pptx
zmulani8
 
Лекц 7
Лекц 7Лекц 7
Лекц 7Muuluu
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhjchapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
AmitDeshai
 
Networking
NetworkingNetworking
Networking
S.M.Mustofa Kauser
 
09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx
KushalSrivastava23
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
DhananjayKumbhar15
 
IP Routing.pptx
IP Routing.pptxIP Routing.pptx
IP Routing.pptx
ssuser957b41
 
Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)
Geethu Jose
 
NAT
NATNAT
Transport Layer, Network layer.pptx
Transport Layer, Network layer.pptxTransport Layer, Network layer.pptx
Transport Layer, Network layer.pptx
MuhammadMoosaPanhwar
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
hamsa nandhini
 

Similar to Network address translation (20)

Internet architecture protocol
Internet architecture protocolInternet architecture protocol
Internet architecture protocol
 
Computer network coe351- part3-final
Computer network coe351- part3-finalComputer network coe351- part3-final
Computer network coe351- part3-final
 
Nat cisco
Nat ciscoNat cisco
Nat cisco
 
CCN CEP.pptx
CCN CEP.pptxCCN CEP.pptx
CCN CEP.pptx
 
Internet Protocols
Internet ProtocolsInternet Protocols
Internet Protocols
 
Computer Networks basics
Computer Networks basicsComputer Networks basics
Computer Networks basics
 
networkaddresstranslation-160909142440.pptx
networkaddresstranslation-160909142440.pptxnetworkaddresstranslation-160909142440.pptx
networkaddresstranslation-160909142440.pptx
 
Nat
NatNat
Nat
 
Лекц 7
Лекц 7Лекц 7
Лекц 7
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhjchapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
 
Networking
NetworkingNetworking
Networking
 
09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx09 Systems Software Programming-Network Programming.pptx
09 Systems Software Programming-Network Programming.pptx
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
 
IP Routing.pptx
IP Routing.pptxIP Routing.pptx
IP Routing.pptx
 
Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
NAT
NATNAT
NAT
 
Unit05
Unit05Unit05
Unit05
 
Transport Layer, Network layer.pptx
Transport Layer, Network layer.pptxTransport Layer, Network layer.pptx
Transport Layer, Network layer.pptx
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 

Network address translation

  • 2. Why NAT? • Network Address Translation (NAT) resolves the problem of lacking IP addresses among network devices communication over the Internet. • NAT allows a single device (router or firewall) to intermediate between the private and public networks by translating unregistered IP address into registered IP address. • Locate at network layer.
  • 3. Concepts around NAT • Source address, destination address: are included in the packet’s IP header, identify IP address of two machines that are exchanging data. • Source port, destination port numbers: the numbers assigned for two computers at each end to open way (port) for data exchange. Port numbers are included in the packet’s IP header. • Address translation table: a list of unique, non-unique IP addresses and port numbers written by the router. • Stub domain: a LAN network with registered IP addresses.
  • 4. Dynamic NAT • A limited number of IP addresses is given to LAN network devices. There are a number of machines without unique IP addresses. • A computer (A) without unique IP address try to connect to another computer outside of the network (B). • The IP address of A is written into the router’s address translation table. Its address is replaced with an available unique IP addresses in the network. • Packet coming from B to A: destination IP address is checked to identify the recipient computer. • The router checks the address translation table again and change the address to the original non-unique IP address. • If no match finds, the packet is dropped.
  • 5. Overloading • Multiplexing: concurrent connections are allowed between computers of different TCP/UDP ports. • A computer (A) without unique IP address try to connect to another computer outside of the network (B). • The IP address and port number of A is saved into the address translation table. Its address is replaced with the IP address of the router. Port number is replaced with the place that A’s information is stored in the address translation table. • Destination port of B’s packet is checked to traced back the address of A in the address translation table. Original address and port are then changed back. • The same port number is then used for the next connection between A and B. If the place is not accessed again before a certain amount of time, the entry is removed.
  • 6. Proxies • Proxy: any device that stands between the client and server (mostly used in Web). Clients make requests to the proxy, then the proxy sends request to Web server on behalf of the client. • Proxy stores frequent visited website into local hard disk and load them when client comes back instead of downloading all data once again from the remote server (caching proxy servers). • If more than one client requests from the same Web server, proxy will make one request and distribute the data responds to all the client. • Unlike NAT, proxy is not transparent operation. It must be explicitly supported by its clients (e.g. by configuring web browser to use proxy).
  • 7. Security and administration • Automatically provides firewall-style protection between internal and external network: no connection from outside is allowed unless contact originates from internal devices. • Extensive filtering and traffic logging: filter contents viewed by internal machines and report with a log file. • The involvement of NAT is transparent with both computers at each end. • Make network administration a lot more easier, e.g. when moving web service to another host. • Easy changes to made to internal network as the external IP addresses to deal with is either router’s or a list of global addresses.
  • 8. Multi-homing • Multi-homing = multiple connection • The load of data packet is distributed through multiple connections to reduce the risk of failure from single connection and decrease wait times. • Different ISPs that assign different range of IP addresses are used. Routers in multi-homing network uses IBGP (Internal Border Gateway Protocol) on the stub domain side and EBGP (External Border Gateway Protocol) to communicate with other routers. • As one of the connection to an ISP fails, data is rerouted to other router.
  • 9. How about networking games? • NAT poses problem to network game development. • Generally NAT blocks all incoming packets and remote computers are unable to initiate contact to local computers, which is bad for peer to peer games. • To overcome this people needs to manually configure port forwarding or giving first contact from inside. Or use NAT punchthrough. • Read more about NAT punchthrough: http://www.raknet.net/raknet/manual/natpunchthrough.html
  • 10. Reference • NAT Punchthrough. (n.d.). Retrieved November 8, 2013, from Raknet: http://www.raknet.net/raknet/manual/natpunchthrough.html • Network Address Translation (NAT). (n.d.). Retrieved November 8, 2013, from Vicomsoft: http://www.vicomsoft.com/learning-center/network-addresstranslation/ • Tyson, J. (n.d.). How Network Address Translation Works. Retrieved November 8, 2013, from HowStuffWorks: http://computer.howstuffworks.com/nat.htm • Phifer, L. (n.d.). The Trouble With NAT. Retrieved from Cisco: http://www.cisco.com/web/about/ac123/ac147/ac174/ac182 /about_cisco_ipj_archive_article09186a00800c83ec.html • Unity3D forum