> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/network/ip-addressing-and-nat/network_address_translation.md).

# Network\_Address\_Translation

{% hint style="info" %}
**정의:**\
IP 패킷의 TCP/UDP 포트 숫자와 소스 및 목적지의 IP 주소 등을 재기록하면서 라우터를 통해 네트워크 트래픽을 주고 받는 기술을 말한다.
{% endhint %}

#### 사용 목적

* IPv4의 주소 부족 문제로 인해 하나의 공인 IP 주소를 사용해 다수의 사설 네트워크에 속한 호스트들이 인터넷에 접속할 수 있도록 하기 위해 고안되었다.
* 공인 IP 주소를 사용해 공인망(public, 인터넷 등을 예시)과 통신하기 위해서 비공인(사설, local)망 주소를 변환할 필요가 있어 NAT를 이용해 자동으로 변환하도록 한다.

#### 장점

1. 인터넷의 공인 IP를 절약할 수 있다.
2. 공공망과 연결되는 사용자들의 고유한 사설망을 (방화벽 등을 사용해) 침입자로부터 보호할 수 있다.

#### 단점

1. 호스트 간 통신에 있어 복잡성을 증가시킬 수 있다.
2. 네트워크 성능에 영향을 줄 수 있다.

#### PAT (Port Address Translation)

* 하나의 공인 IP를 여러 내부 호스트가 공유한다.
* 구분을 위해 **포트 번호**까지 함께 변환한다.

#### 참고 링크

* <https://aws-hyoh.tistory.com/145>
* <https://blog.naver.com/dltlahs007/100039238060>
* (PAT) <https://hyolo.tistory.com/47>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/network/ip-addressing-and-nat/network_address_translation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
