NAT

2025. 8. 17. 19:47·Computer Science/Network

 

NAT (Network Address Translation) is a networking technique that modifies the IP address information in packet headers while the packets pass through a router or firewall.

Its primary purpose is to map private (internal) IP addresses to public (external) IP addresses, and vice versa.

 

 

Real-World Example

Suppose two employees (e.g., Manager Hongcheol and Deputy Gayoung) each have private IP addresses like 192.168.0.x.

Using a NAT device, both can access the internet through a single public IP address, such as 121.165.151.200.

  • From the internet's perspective, all requests appear to come from the same public IP.
  • NAT keeps track of which internal device initiated each request using port numbers and translation tables.

Key Functions of NAT

  1. Use of Private IP Addresses
    •     Allows internal networks to use private IP ranges (e.g., 192.168.x.x, 10.x.x.x, 172.16.x.x ~ 172.31.x.x)
    •     Private IPs are not routable on the public internet and must be translated before leaving the local network.
  2. IP Address Translation
    •     NAT converts private IPs to public IPs when data is sent out.
    •     During response, NAT maps the public IP back to the correct private IP.
  3. Port Mapping (PAT: Port Address Translation)
    •     NAT uses port numbers to distinguish between multiple devices using the same public IP.
    •     Enables multiple hosts to share a single public IP address.
  4. Security Benefits
    •     NAT prevents direct access from external hosts to internal devices.
    •     This acts as a basic firewall, providing an extra layer of security.

Why NAT Is Widely Used

  • NAT effectively addresses IPv4 address exhaustion by enabling many devices to share a single public IP.
  • It improves security by isolating internal hosts from the public internet.
  • As a result, NAT has become one of the most commonly used IP management techniques in modern networking.

Summary:

NAT allows private devices to communicate externally using a single public IP, while offering address conservation, scalability, and basic security.

'Computer Science > Network' 카테고리의 다른 글

네트워크에서 데이터는 어떻게 전달될까(TCP/IP 모델)  (0) 2025.10.19
URI, URL and URN  (0) 2025.08.30
IP Address  (0) 2025.08.06
MAC address  (0) 2025.08.01
ARP_Address Resolution Protocol  (0) 2025.07.30
'Computer Science/Network' 카테고리의 다른 글
  • 네트워크에서 데이터는 어떻게 전달될까(TCP/IP 모델)
  • URI, URL and URN
  • IP Address
  • MAC address
JTB
JTB
웹/앱 개발 정보를 공유하고 있습니다.
  • JTB
    JTechBlog
    JTB
  • 전체
    오늘
    어제
    • All About Programming;)
      • Other than Tech
        • 잡생각
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
        • Web Development
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • React
        • Next.js
        • Flutter
        • Testing
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test
        • LeetCode
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML & CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    Network
    Binary Tree BFS
    leetcode
    How memory manage data
    Javascript Essentials
    이벤트
    TCP/IP
    딥다이브
    js pattern
    structure of os
    스코프
    Operating System
    mobile app
    Shared resources
    커리어
    indie hacker
    프론트엔드 성능 최적화 가이드
    자바스크립트
    CPU scheduling algorithm
    자바스크립트 딥다이브
    VoiceJournal
    polylingo
    database
    need a database
    모던 자바스크립트 Deep Dive
    Time complexity and Space complexity
    Data Structure
    DOM
    testing
    Threads and Multithreading
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
NAT
상단으로

티스토리툴바