# chandu-jannu/nat-explain architecture

> Architecture diagram of the GitHub repository chandu-jannu/nat-explain, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandu-jannu/nat-explain
- Repository: https://github.com/chandu-jannu/nat-explain

## Overview

This tiny repository documents Network Address Translation rather than implementing a network service. The README describes the outbound and reply translation flow, the mapping table, and Static NAT, Dynamic NAT, and PAT. No source excerpts were provided, so the graph reflects documented concepts only; hello.html’s contents and behavior are unknown.

Main entry points: [`README.md`](https://github.com/chandu-jannu/nat-explain/blob/main/README.md) (NAT Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_reader(("Reader"))
node_nat_guide["NAT Guide<br/>[README.md]"]
node_private_device["Private Device<br/>[README.md]"]
node_nat_router["NAT Router<br/>[README.md]"]
node_nat_mapping[("NAT Table<br/>[README.md]")]
node_internet_server["Internet Server<br/>[README.md]"]
node_nat_types["NAT Types<br/>[README.md]"]

node_reader -->|"reads"| node_nat_guide
node_private_device -->|"sends packet"| node_nat_router
node_nat_router -->|"records mapping"| node_nat_mapping
node_nat_router -->|"forwards translated packet"| node_internet_server
node_internet_server -->|"replies to public port"| node_nat_router
node_nat_router -->|"looks up mapping"| node_nat_mapping
node_nat_router -->|"forwards reply"| node_private_device
node_nat_guide -->|"describes"| node_nat_types

click node_nat_guide "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"
click node_private_device "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"
click node_nat_router "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"
click node_nat_mapping "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"
click node_internet_server "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"
click node_nat_types "https://github.com/chandu-jannu/nat-explain/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_reader toneIndigo
class node_nat_guide,node_private_device,node_nat_types toneTeal
class node_nat_router,node_internet_server toneMint
class node_nat_mapping toneAmber
```

## Components

### Other components

- **Reader**
- [NAT Guide](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`
- [Private Device](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`
- [NAT Router](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`
- [NAT Table](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`
- [Internet Server](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`
- [NAT Types](https://github.com/chandu-jannu/nat-explain/blob/main/README.md): `README.md`

## Connections

- Reader → NAT Guide: reads (evidence: `README.md`)
- Private Device → NAT Router: sends packet (evidence: `README.md`)
- NAT Router → NAT Table: records mapping (evidence: `README.md`)
- NAT Router → Internet Server: forwards translated packet (evidence: `README.md`)
- Internet Server → NAT Router: replies to public port (evidence: `README.md`)
- NAT Router → NAT Table: looks up mapping (evidence: `README.md`)
- NAT Router → Private Device: forwards reply (evidence: `README.md`)
- NAT Guide → NAT Types: describes (evidence: `README.md`)
