Network Address Translation (NAT)

Slides:



Advertisements
Similar presentations
Fred P. Baker CCIE, CCIP(security), CCSA, MCSE+I, MCSE(2000)
Advertisements

CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
©2012 ClearOne Communications. Confidential and proprietary. COLLABORATE ® Video Conferencing Networking Basics.
IP Masquerading Homes and Businesses: When you only have one IP but you have LOTS of machines.
CS 4700 / CS 5700 Network Fundamentals Lecture 15: NAT (You Better Forward Those Ports) Revised 3/9/2013.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—5-1 WAN Connections Enabling the Internet Connection.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
What we will cover… Home Networking: Network Address Translation (NAT) Mobile Routing.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CMPSC-358 (CCNA 4 ) Spring 2007.
M. Dahshan - TCOM52721 TCOM 5272 Telecomm Lab Dr. Mostafa Dahshan OU-Tulsa 4W 2 nd floor
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
Chapter 6 Network Address Translation (NAT). Network Address Translation  Modification of source or destination IP address  Needed by networks using.
Wi-Fi Structures.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition Chapter 9 Network Services.
A Guide to major network components
Sybex CCENT Chapter 13: Network Address Translation Instructor & Todd Lammle.
1. A router is a device in computer networking that forwards data packets to their destinations, based on their addresses. The work a router does it called.
Networking Components Chad Benedict – LTEC
Section 461.  ARP  Ghostbusters  Grew up in Lexington, KY  Enjoy stargazing, cycling, and mushroom hunting  Met Mario once (long time ago)
Middleboxes & Network Appliances EE122 TAs Past and Present.
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
Day15 IP Space/Setup. IP Suite of protocols –TCP –UDP –ICMP –GRE… Gives us many benefits –Routing of packets over internet –Fragmentation/Reassembly of.
4: Addressing Working At A Small-to-Medium Business or ISP.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
9/11/2015Home Networking1 Bob.test Have Road Runner Unhappy about reports of constant probes of machines Policy decision –I want to prevent unauthorized.
Page 1 NAT & VPN Lecture 8 Hassan Shuja 05/02/2006.
1 NAT Network Address Translation Motivation for NAT To solve the insufficient problem of IP addresses IPv6 –All software and hardware need to be updated.
Introduction to Network Address Translation
Chapter 13 – Network Security
CTSP TRAINING Router 101 And Networking Basics. You Don’t Need Internet Access to Run or Connect your devices to an Ethernet switch or Router Enable DHCP.
0Gold 11 0Gold 11 LapLink Gold 11 Firewall Service How Connections are Created A Detailed Overview for the IT Manager.
Scalability Don McGregor Research Associate MOVES Institute
Understanding Networking Joe Cicero Northeast Wisconsin Technical College.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
1 Chapter Overview Password Protection Security Models Firewalls Security Protocols.
Addressing Issues David Conrad Internet Software Consortium.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Planning the Addressing Structure Working at a Small-to-Medium Business.
Private Network Addresses IP addresses in a private network can be assigned arbitrarily. – Not registered and not guaranteed to be globally unique Generally,
CCNA 4 v3.1 Module 1 Scaling IP Addresses
WebRTC Don McGregor Research Associate MOVES Institute
Networking Components
NAT/PAT by S K SATAPATHY
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
Ch. 23, 25 Q and A (NAT and UDP) Victor Norman IS333 Spring 2015.
Lecture 10 Page 1 CS 236 Online SSL and TLS SSL – Secure Socket Layer TLS – Transport Layer Security The common standards for securing network applications.
CS 3700 Networks and Distributed Systems
Planning the Addressing Structure
NAT (Network Address Translation)
Chapter 13 Network Address Translation
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
Network Address Translation
CS 3700 Networks and Distributed Systems
Network Address Translation (NAT)
Introducing To Networking
Digital Pacman: Firewall Edition
New Solutions For Scaling The Internet Address Space
By - Ricardo Sanchez, Ken Wolters and William Hibbard
Cabrillo College Building Cisco Remote Access Network
CS 3700 Networks and Distributed Systems
Planning the Addressing Structure
Planning the Addressing Structure
Prepared by :Adeel Ahmad
DHCP: Dynamic Host Configuration Protocol
Presentation transcript:

Network Address Translation (NAT) Don McGregor Research Associate MOVES Institute Understanding global peace and conflict means understanding of human communities in the midst of and in response to change. US Joint Forces Command noted that “changes in the strategic landscape… new technologies, and the adaptation and creativity of our adversaries will alter….operations a great deal. Here too, the past can suggest much about the future – the nature of change, its impacts on human societies….” This presentation provides an overview of the project and research methodology, progress to date and planned go-forward efforts. 2008. The Joint Operating Environment, United States Joint Forces Command Center for Joint Futures (J59). mcgredo@nps.edu

Network Address Translation In the original “classic” internet IPs were all publicly addressable. You could contact any host from any other host IPs have become a somewhat rare commodity now, so people are trying to conserve them. One way to do this is via NAT The idea is to use a single “classic” IP on the internet-facing side of a network, and “private” IPs on the other side

NAT Router Router Public IP Private IP Internet 205.155.65.17 192.168.1.1 Home Router Laptop Private IP 192.168.1.2

NAT Your home router, when it boots, usually receives a public IP from your ISP on its internet-facing side. This IP can be addressed by the internet. On your home network side, it usually assigns itself an IP of 192.168.1.1. This is a “private IP” that is not usable on the big internet Your router runs DHCP itself, and hands out private IPs to anything on your home network (but not the public-facing network!) So a laptop on your home network might get assigned an IP of 192.168.1.2 Everything in your home network has a unique IP and everything is happy

Private IPs The IETF has assigned certain blocks of Ips to be “private IPs”. They are 10.0.0.0 – 10.255.255.255 172.16.0.0 – 172.31.255.255 192.168.0.0 – 192.168.255.255 These IPs can only be used within a private network. If any packets have a destination address from the above blocks, they are simply discarded on the big internet. You can still use them on your private network, though.

Example: Send a packet from your laptop in your home network to a desktop in your home network. OK; source and destination IPs of 192.168.1.x are OK on your private network Send a packet with a source or destination IP of 192.168.1.x to www.apple.com Not OK! Packet must traverse the big internet, and there are millions of hosts with an IP of 192.168.1.2 in private networks. We wouldn’t know where to send the response, determined by the source IP! As a result routers on the public internet discard packets using private IPs

Getting Out So how can we allow our laptop to contact Amazon from inside our private network? This is done via Network Address Translation A TCP/IP packet has a source and destination IP address Src IP Dest IP 192.168.1.2 209.191.122.70 …Other stuff Payload

NAT When the packet is received by your home router it does a change: the source IP is changed from 192.168.1.2 to the public IP assigned to the home router, 205.155.65.17 This IP is unique in the internet; no other host anywhere in the world should have it When a response is received, the home router does a switch again: the destination IP is changed from the public IP to 192.168.1.2

NAT The NAT router maintains a table that maps each private network socket connection, so multiple hosts inside the private network can use the same NAT host

Configuration (Home) Usually you just point your web browser at 192.168.1.1. There’s a web-based configuration tool there. Log on (probably with the pw and username in the documentation) and configure

Port Forwarding Notice that a host external to the NAT can’t talk to a host internal to the NAT—there’s no way to know which internal host it should go to unless an internal host first establishes a connection out and creates an entry in the NAT table This is a big problem for games and simulations exchanging state information One way around this is “port fowarding”. The NAT box is pre-configured so that traffic from outside to the router is automatically forwarded to a specific host and port

Port Forwarding (LinkSys)

Why? Suppose you’re running a network in a secure facility that is completely cut off from the internet. No need for routable IPs, and in fact you don’t want routable IPs It saves public IPs. A company can have only a few public IPs but hundreds or thousands of hosts with private IPs. The internet is running out of public IPs Can be more secure; an outsider can’t directly establish a connection to a private host Allows clients to contact outside servers

Why Not? Sometimes you want to have others connect to you (peer-to-peer): Voice over IP, games and virtual environments, etc. There are some techniques for allowing this (“NAT Punch-through” or “NAT traversal”) but they’re pretty complex and because home routers vary so much are difficult to standardize See RFC 5128 for details on NAT traversal See also “port forwarding”