NAT (Network Address Translation)

Slides:



Advertisements
Similar presentations
CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
Advertisements

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-
CS 4700 / CS 5700 Network Fundamentals Lecture 15: NAT (You Better Forward Those Ports) Revised 3/9/2013.
NAT/Firewall Traversal April NAT revisited – “port-translating NAT”
STUN Date: Speaker: Hui-Hsiung Chung 1.
SIP Traversal over NAT Problems and Solutions Mr. Ting-Yun Chi May 2,2006 (Taiwan,NICI IPv6 R&D Division)
Copyright 2005 – 2009 © by Elliot Eichen. All rights reserved. NAT (NAPT/PAT), STUN, and ICE `Structure of ice II, viewed along the hexagonal c-axis. Hydrogen.
1 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID STUN, TURN and ICE Cary Fitzgerald.
Chapter 6 Network Address Translation (NAT). Network Address Translation  Modification of source or destination IP address  Needed by networks using.
SIP, NAT, Firewall SIP NAT Firewall How to Traversal NAT/Firewall for SIP.
Subnetting.
Section 461.  ARP  Ghostbusters  Grew up in Lexington, KY  Enjoy stargazing, cycling, and mushroom hunting  Met Mario once (long time ago)
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.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Network Address Translation (NAT) CS-480b Dick Steflik.
Network Address Translation (NAT)
9/11/2015Home Networking1 Bob.test Have Road Runner Unhappy about reports of constant probes of machines Policy decision –I want to prevent unauthorized.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
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
STUN - Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translators (NATs) speaker : Wenping Zhang date :
Greg Van Dyne December 4, Agenda Introduction Technical Overview Protocols Demonstration Future Trends References.
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 7: NAT in Internet and Intranet Designs Designs That Include NAT Essential NAT Design Concepts Data Protection in NAT Designs NAT Design Optimization.
Security, NATs and Firewalls Ingate Systems. Basics of SIP Security.
NAT Network Address Translation. Reading CNI – pp Port Mapping LA – pp NAT.
NAT and PAT. Topics RFCs 1597(obs by 1918), 1631,1917, 1918 & 1797 Network Address Translation – Static and Dynamic Port Address Translation Issues with.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 11: Network Address Translation for IPv4 Routing And Switching.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
K. Salah1 Security Protocols in the Internet IPSec.
HIP-Based NAT Traversal in P2P-Environments
S ECURITY APPLIANCES Module 2 Unit 2. S ECURE NETWORK TOPOLOGIES A topology is a description of how a computer network is physically or logically organized.
Network Address Translation (NAT)
CS 3700 Networks and Distributed Systems
Could SP-NAT Save the Internet?
Gijeong Kim ,Junho Kim ,Sungwon Lee Kyunghee University
NAT : Network Address Translation
Original slides prepared by Theo Benson
Networking for Home and Small Businesses – Chapter 5
Network Address Translation (NAT)
改良UDP洞穿技術設計物聯網通訊: 以遠端門鈴監控系統為例 Improving UDP Hole Punching Technique For IoT Communications: A Remote Door-bell Monitoring System 報告時間28~32分佳 楊凱勝 指導教授:柯開維.
Network Address Translation
Instructor Materials Chapter 9: NAT for IPv4
CS 3700 Networks and Distributed Systems
Network Address Translation (NAT)
Routing and Switching Essentials v6.0
Introduction to Computers
Introduction to Networking
Introducing To Networking
Introduction to Networking
Introduction to Networking
Hiding Network Computers Gateways
NET323 D: Network Protocols
Networking for Home and Small Businesses – Chapter 5
New Solutions For Scaling The Internet Address Space
* Essential Network Security Book Slides.
CIS 82 Routing Protocols and Concepts Chapter 11 NAT
CS 3700 Networks and Distributed Systems
Instructor Materials Chapter 9: NAT for IPv4
NET323 D: Network Protocols
Setting Up Firewall using Netfilter and Iptables
NAT Traversal for VoIP Dr. Quincy Wu National Chi Nan University
Chapter 11: Network Address Translation for IPv4
Networking Essentials For Firewall-1 Administrators
Request for Comments(RFC) 3489
Network Address Translation (NAT)
DHCP: Dynamic Host Configuration Protocol
Presentation transcript:

NAT (Network Address Translation) Section 461

Jokes Seal Ghostbusters Bittorrent

Introduction to Nat Grew up in Lexington, KY Enjoy stargazing, cycling, and mushroom hunting Met Mario once (long time ago)

Introduction to NAT Network Address Translation Not very old (heavy use since late 90s) Maps from private addresses to public addresses, and vice-versa Port numbers as secondary addressing information Most common type of NAT is actually NAPT (Network Address Port Translation) Other type of NAT is “Basic NAT” (which we won’t really be discussing)

Private Networks Any IP network that isn’t directly connected to the internet IP addresses can be assigned however we want! However, generally these ranges are used: 10.0.0.0 – 10.255.255.255 172.16.0.0 – 172.31.255.255 192.168.0.0 – 192.168.255.255

NAT Diagram

How’s NAT work? How could we do this?

How’s NAT work? Each NAT device (router) has an address translation table For outbound packets, a new table entry is made, choosing an arbitrary source port number (TCP/IP headers rewritten) For inbound packets, the table is consulted to rewrite the packet headers and re-route to an internal host Phone analogy

Why Do We Need NAT? Why is NAT necessary?

Why Do We Need NAT? Why is NAT necessary? Not enough IP addresses to go around We want some hosts not to be publicly accessible Security concerns (NATs are used as firewalls)

Types of NAT Full-cone NAT Address-restricted-cone NAT Accepts data through any previously used port Address-restricted-cone NAT Only accepts data through previously used ports if the source IP matches a system we’ve already sent to Port-restricted-cone NAT Like the above, but uses source ports too Symmetric NAT Mappings are unique to external hosts: a different public port is used for each external host

Problems with NAT NAT is great! But it has issues Like what?

Problems with NAT NAT is great! But it has issues Like what? Breaks “end-to-end principle” Should just use IPv6 Rewrites packet headers Even requires new TCP checksum! Initial issue: how do you connect to a host behind a NAT if it hasn’t talked to you first?

Running Services behind a NAT You’re behind a NAT, and you need an external host’s packets to get to you Example: running a web host behind a NAT You can’t necessarily send an outbound packet first to write the NAT table Major issue for games and P2P Solutions? Port forwarding (manually adding tables to the address translation table)

NAT Punchthrough Two hosts behind NATs need a way to exchange data directly They know each other’s IPs, but not each other’s communication ports They both connect to a known server that exchanges the data for them They can now communicate Often used for multiplayer games

UPnP and IGD UPnP: Universal Plug and Play Protocols for networked devices to perform discovery automatically IGD: Internet Gateway Device protocol NAT protocol that can perform automatic port mapping Allows a host inside a network to tell the router which public port it wants to use for communication Also gives mechanisms for finding public IP address and checking existing port mappings Games can rely on this protocol to configure NAT tables such that users can be mapped with known ports and communication can take place

STUN Old Name: Simple Traversal of UDP through NAT New Name: Session Traversal Utilities for NAT Protocol for NAT traversal Hosts get their own public-facing IPs by asking an outside server

TURN Traversal Using Relays Around NAT Similar to earlier punchthrough algorithm A server sits between two hosts behind NATs The server relays data between the two hosts

ICE Interactive Connectivity Establishment Protocol that utilizes STUN and TURN to perform NAT punchthrough Used often in VoIP

Questions?